mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(text-input): change to after content checked to get the value
references #710
This commit is contained in:
@ -490,7 +490,8 @@ export class TextInputElement {
|
||||
if (ngControl) this.ngControl = ngControl;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
ngAfterContentChecked() {
|
||||
console.log("Value", this.ngControl.value);
|
||||
if (this.ngControl) this.value = this.ngControl.value;
|
||||
this.wrapper && this.wrapper.hasValue(this.value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user