Skip to content

Commit 181a070

Browse files
committed
fix(input): check has value on writeValue
1 parent fe95281 commit 181a070

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ionic/components/input/input-base.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ export class InputBase {
181181
* the checked value.
182182
* https://github.com/angular/angular/blob/master/modules/angular2/src/forms/directives/shared.ts#L34
183183
*/
184-
writeValue(value) {
185-
this._value = value;
184+
writeValue(val) {
185+
this._value = val;
186+
this.checkHasValue(val);
186187
}
187188

188189
/**

0 commit comments

Comments
 (0)