src/aria/widgets/form/TextInput.js
function (value) {
            if (value == null) {
                value = this._getText();
            }

            // _getText only handles valid / invalid values and prefills, not the helptext
            if (!value && !this._isPassword) {
                // We don't want to handle helptext in password fields, first remove any text
                this.getTextInputField().value = "";
                this.setHelpText(true);
            } else if (value) {
                this.setHelpText(false);
                this.getTextInputField().value = value;
            }
        }
function (value) {
            if (value == null) {
                value = this._getText();
            }

            // _getText only handles valid / invalid values and prefills, not the helptext
            if (!value && !this._isPassword) {
                // We don't want to handle helptext in password fields, first remove any text
                this.getTextInputField().value = "";
                this.setHelpText(true);
            } else if (value) {
                this.setHelpText(false);
                this.getTextInputField().value = value;
            }
        }
function ( value ) { if ( value == null ) { value = this . _getText ( ) ; } // _getText only handles valid / invalid values and prefills, not the helptext if ( ! value && ! this . _isPassword ) { // We don't want to handle helptext in password fields, first remove any text this . getTextInputField ( ) . value = "" ; this . setHelpText ( true ) ; } else if ( value ) { this . setHelpText ( false ) ; this . getTextInputField ( ) . value = value ; } }
Set a given text as value for the text input. This method handles helptext for non password fields.
@param {String} value Text to be set, if empty uses the value from <code>this._getText</code> or the
helptext
Set a given text as value for the text input . This method handles helptext for non password fields .