* 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 )
| 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) |
no test coverage detected