src/aria/widgets/form/MultiAutoComplete.js
function (event) {
            this.$AutoComplete._dom_onclick.call(this, event);
            var element = event.target;
            if (element.className === "closeBtn") {
                this._removeMultiselectValue(element, event);
                this._textInputField.focus();
            }
            if (element.className.indexOf("xMultiAutoComplete_Option_Text") != -1) {
                var highlightedSuggestions = this.getHighlight();
                var index = this._getIndexFromNode(element.parentNode);
                if (this.controller.freeText && ariaUtilsJson.equals(highlightedSuggestions, [index])) {
                    this._editMultiselectValue(element);
                } else {
                    this.highlightOption(index);
                }
            }
            this.__resizeInput();
        }
function (event) {
            this.$AutoComplete._dom_onclick.call(this, event);
            var element = event.target;
            if (element.className === "closeBtn") {
                this._removeMultiselectValue(element, event);
                this._textInputField.focus();
            }
            if (element.className.indexOf("xMultiAutoComplete_Option_Text") != -1) {
                var highlightedSuggestions = this.getHighlight();
                var index = this._getIndexFromNode(element.parentNode);
                if (this.controller.freeText && ariaUtilsJson.equals(highlightedSuggestions, [index])) {
                    this._editMultiselectValue(element);
                } else {
                    this.highlightOption(index);
                }
            }
            this.__resizeInput();
        }
function ( event ) { this . $AutoComplete . _dom_onclick . call ( this , event ) ; var element = event . target ; if ( element . className === "closeBtn" ) { this . _removeMultiselectValue ( element , event ) ; this . _textInputField . focus ( ) ; } if ( element . className . indexOf ( "xMultiAutoComplete_Option_Text" ) != - 1 ) { var highlightedSuggestions = this . getHighlight ( ) ; var index = this . _getIndexFromNode ( element . parentNode ) ; if ( this . controller . freeText && ariaUtilsJson . equals ( highlightedSuggestions , [ index ] ) ) { this . _editMultiselectValue ( element ) ; } else { this . highlightOption ( index ) ; } } this . __resizeInput ( ) ; }
Internal method to handle the click event to remove suggestion. This event is used to set focus on input
field
@param {aria.DomEvent} event Event object
@protected
Internal method to handle the click event to remove suggestion . This event is used to set focus on input field