mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(text-input): renamed some classes and removed some nesting
references #689
This commit is contained in:
@ -372,7 +372,7 @@ export class TextInput {
|
||||
* @private
|
||||
*/
|
||||
focusChange(hasFocus) {
|
||||
this.renderer.setElementClass(this.elementRef, 'has-focus', hasFocus);
|
||||
this.renderer.setElementClass(this.elementRef, 'input-focused', hasFocus);
|
||||
if (!hasFocus) {
|
||||
this.deregMove();
|
||||
this.input.hideFocus(false);
|
||||
@ -383,7 +383,7 @@ export class TextInput {
|
||||
* @private
|
||||
*/
|
||||
hasValue(inputValue) {
|
||||
this.renderer.setElementClass(this.elementRef, 'has-value', inputValue && inputValue !== '');
|
||||
this.renderer.setElementClass(this.elementRef, 'input-has-value', inputValue && inputValue !== '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user