mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(input): fix floating label on blur w/ value
This commit is contained in:
@ -154,6 +154,7 @@ export class InputBase {
|
|||||||
this.focusChange(this.hasFocus());
|
this.focusChange(this.hasFocus());
|
||||||
nativeInput.focusChange.subscribe(textInputHasFocus => {
|
nativeInput.focusChange.subscribe(textInputHasFocus => {
|
||||||
this.focusChange(textInputHasFocus);
|
this.focusChange(textInputHasFocus);
|
||||||
|
this.checkHasValue(nativeInput.getValue());
|
||||||
if (!textInputHasFocus) {
|
if (!textInputHasFocus) {
|
||||||
this.onTouched(textInputHasFocus);
|
this.onTouched(textInputHasFocus);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user