Skip to content

Commit c264e31

Browse files
committed
fix(select): null value clears select text
Closes #5288
1 parent b4758b1 commit c264e31

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ionic/components/select/select.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,7 @@ export class Select {
294294
* https://github.com/angular/angular/blob/master/modules/angular2/src/forms/directives/shared.ts#L34
295295
*/
296296
writeValue(val) {
297-
if (!isBlank(val)) {
298-
this.value = val;
299-
}
297+
this.value = val;
300298
}
301299

302300
/**

0 commit comments

Comments
 (0)