demo/bundle.js
/**
               * Deactivates the Text Field's focus state.
               */
Deactivates the Text Field's focus state.
Deactivates the Text Field ' s focus state .
deactivateFocus() {
                this.isFocused_ = false;
                this.adapter_.deactivateLineRipple();
                const input = this.getNativeInput_();
                const shouldRemoveLabelFloat = !input.value && !this.isBadInput_();
                const isValid = this.isValid();
                this.styleValidity_(isValid);
                this.styleFocused_(this.isFocused_);
                if (this.adapter_.hasLabel()) {
                  this.adapter_.shakeLabel(this.shouldShake);
                  this.adapter_.floatLabel(this.shouldFloat);
                  this.notchOutline(this.shouldFloat);
                }
                if (shouldRemoveLabelFloat) {
                  this.receivedUserInput_ = false;
                }
              }
deactivateFocus ( ) { this . isFocused_ = false ; this . adapter_ . deactivateLineRipple ( ) ; const input = this . getNativeInput_ ( ) ; const shouldRemoveLabelFloat = ! input . value && ! this . isBadInput_ ( ) ; const isValid = this . isValid ( ) ; this . styleValidity_ ( isValid ) ; this . styleFocused_ ( this . isFocused_ ) ; if ( this . adapter_ . hasLabel ( ) ) { this . adapter_ . shakeLabel ( this . shouldShake ) ; this . adapter_ . floatLabel ( this . shouldFloat ) ; this . notchOutline ( this . shouldFloat ) ; } if ( shouldRemoveLabelFloat ) { this . receivedUserInput_ = false ; } }
Deactivates the Text Field's focus state.
Deactivates the Text Field ' s focus state .