MCPcopy
hub / github.com/Robdel12/DropKick / selectOne

Method selectOne

src/dropkick.js:591–595  ·  view source on GitHub ↗

* Selects a single option from the list and scrolls to it (if the select is open or on multi-selects). * Useful for selecting an option after a search by the user. Important to note: this doesn't close the * dropdown when selecting. It keeps the dropdown open and scrolls to proper position.

( elem, disabled )

Source from the content-addressed store, hash-verified

589 * select.selectOne(4);
590 */
591 selectOne( elem, disabled ) {
592 this.reset( true );
593 this._scrollTo( elem );
594 return this.select( elem, disabled );
595 }
596
597 /**
598 * Finds all options who's text matches a pattern (strict, partial, or fuzzy)

Callers 1

_searchOptionsMethod · 0.95

Calls 3

resetMethod · 0.95
_scrollToMethod · 0.95
selectMethod · 0.95

Tested by

no test coverage detected