mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
refactor(all): enable ts strict
This commit is contained in:
@ -149,7 +149,7 @@ export class Textarea implements TextareaComponent {
|
||||
*/
|
||||
@Watch('value')
|
||||
protected valueChanged() {
|
||||
const inputEl = this.el.querySelector('textarea');
|
||||
const inputEl = this.el.querySelector('textarea')!;
|
||||
if (inputEl.value !== this.value) {
|
||||
inputEl.value = this.value;
|
||||
}
|
||||
@ -189,7 +189,7 @@ export class Textarea implements TextareaComponent {
|
||||
}
|
||||
|
||||
inputChanged(ev: Event) {
|
||||
this.value = ev.target && (ev.target as HTMLInputElement).value;
|
||||
this.value = ev.target && (ev.target as HTMLInputElement).value || '';
|
||||
this.ionInput.emit(ev);
|
||||
this.emitStyle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user