mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +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