src/aria/widgets/form/MultiAutoComplete.js
function (suggestionNode) {
            if (suggestionNode == null) {
                suggestionNode = Aria.$window.document.activeElement;
                if (suggestionNode.className.indexOf("highlight") === -1) {
                    suggestionNode = this._getSuggestionsContainer().children[this.getHighlightedOptionIndex() - 1];
                }
                // TODO Get currently focused element and check this is an highlighted option...
            }

            if (suggestionNode != null) {
                this._removeClass(suggestionNode, 'highlight');
                suggestionNode.firstChild.removeAttribute('tabindex');
            }
        }
function (suggestionNode) {
            if (suggestionNode == null) {
                suggestionNode = Aria.$window.document.activeElement;
                if (suggestionNode.className.indexOf("highlight") === -1) {
                    suggestionNode = this._getSuggestionsContainer().children[this.getHighlightedOptionIndex() - 1];
                }
                // TODO Get currently focused element and check this is an highlighted option...
            }

            if (suggestionNode != null) {
                this._removeClass(suggestionNode, 'highlight');
                suggestionNode.firstChild.removeAttribute('tabindex');
            }
        }
function ( suggestionNode ) { if ( suggestionNode == null ) { suggestionNode = Aria . $window . document . activeElement ; if ( suggestionNode . className . indexOf ( "highlight" ) === - 1 ) { suggestionNode = this . _getSuggestionsContainer ( ) . children [ this . getHighlightedOptionIndex ( ) - 1 ] ; } // TODO Get currently focused element and check this is an highlighted option... } if ( suggestionNode != null ) { this . _removeClass ( suggestionNode , 'highlight' ) ; suggestionNode . firstChild . removeAttribute ( 'tabindex' ) ; } }
Removes the highlighted state from the given option.
@param {HTMLElement} suggestionNode The HTML element corresponding to the highlighted option
Removes the highlighted state from the given option .