mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
change [text-input] to .text-input, add .item-input
This commit is contained in:
@ -461,12 +461,14 @@ export class TextInputElement {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
this.elementRef = elementRef;
|
this.elementRef = elementRef;
|
||||||
this.wrapper = wrapper;
|
this.wrapper = wrapper;
|
||||||
|
|
||||||
this.renderer = renderer;
|
this.renderer = renderer;
|
||||||
renderer.setElementAttribute(this.elementRef, 'text-input', '');
|
|
||||||
|
// all text inputs (textarea, input[type=text],input[type=password], etc)
|
||||||
|
renderer.setElementClass(elementRef, 'text-input', true);
|
||||||
|
|
||||||
if (wrapper) {
|
if (wrapper) {
|
||||||
// it's within ionic's ion-input, let ion-input handle what's up
|
// it's within ionic's ion-input, let ion-input handle what's up
|
||||||
|
renderer.setElementClass(elementRef, 'item-input', true);
|
||||||
wrapper.registerInput(this);
|
wrapper.registerInput(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user