src/aria/widgets/form/AutoComplete.js
function (event) {
            if (this._cfg.autoFill && event.domEvent) {
                // Closing the dropdown after typing is not a domEvent
                var value = this.controller.getDataModel().value;
                if (value != null) {
                    var report = this.controller.checkDropdownValue(value);
                    this._reactToControllerReport(report);
                }
            }
        }
function (event) {
            if (this._cfg.autoFill && event.domEvent) {
                // Closing the dropdown after typing is not a domEvent
                var value = this.controller.getDataModel().value;
                if (value != null) {
                    var report = this.controller.checkDropdownValue(value);
                    this._reactToControllerReport(report);
                }
            }
        }
function ( event ) { if ( this . _cfg . autoFill && event . domEvent ) { // Closing the dropdown after typing is not a domEvent var value = this . controller . getDataModel ( ) . value ; if ( value != null ) { var report = this . controller . checkDropdownValue ( value ) ; this . _reactToControllerReport ( report ) ; } } }
React to a dropdown close. If the widget is using autofill we want to select the pre-selected value in the
datamodel and report it to the input field also when the user clicks away from the field instead of
navigating through TAB or selecting an item from the dropdown. This function is called any time we close the
dropdown, even when typing there are no results.
@param {Object} event Event that triggered this callback
@private
React to a dropdown close . If the widget is using autofill we want to select the pre - selected value in the datamodel and report it to the input field also when the user clicks away from the field instead of navigating through TAB or selecting an item from the dropdown . This function is called any time we close the dropdown even when typing there are no results .