mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(text-inputs): fix text inputs not wrapped by ion-input
This commit is contained in:
@ -78,6 +78,10 @@
|
|||||||
|
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<textarea></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
@ -402,8 +402,8 @@ export class TextInput {
|
|||||||
selector: 'textarea,input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],input[type=tel]',
|
selector: 'textarea,input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],input[type=tel]',
|
||||||
inputs: ['value'],
|
inputs: ['value'],
|
||||||
host: {
|
host: {
|
||||||
'(focus)': 'wrapper.focusChange(true)',
|
'(focus)': 'focusChange(true)',
|
||||||
'(blur)': 'wrapper.focusChange(false)',
|
'(blur)': 'focusChange(false)',
|
||||||
'(keyup)': 'onKeyup($event)'
|
'(keyup)': 'onKeyup($event)'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -428,12 +428,16 @@ export class TextInputElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onKeyup(ev) {
|
onInit() {
|
||||||
this.wrapper.hasValue(ev.target.value);
|
this.wrapper && this.wrapper.hasValue(this.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
onInit() {
|
focusChange(changed) {
|
||||||
this.wrapper.hasValue(this.value);
|
this.wrapper && this.wrapper.focusChange(changed);
|
||||||
|
}
|
||||||
|
|
||||||
|
onKeyup(ev) {
|
||||||
|
this.wrapper && this.wrapper.hasValue(ev.target.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
labelledBy(val) {
|
labelledBy(val) {
|
||||||
|
Reference in New Issue
Block a user