(preventInputBlur?: boolean)
| 536 | } |
| 537 | |
| 538 | hideDropdown(preventInputBlur?: boolean): this { |
| 539 | if (!this.dropdown.isActive) { |
| 540 | return this; |
| 541 | } |
| 542 | |
| 543 | this._removeHighlightedChoices(); |
| 544 | |
| 545 | requestAnimationFrame(() => { |
| 546 | this.dropdown.hide(); |
| 547 | this.containerOuter.close(); |
| 548 | |
| 549 | if (!preventInputBlur && this._canSearch) { |
| 550 | this.input.removeActiveDescendant(); |
| 551 | this.input.blur(); |
| 552 | } |
| 553 | |
| 554 | this.passedElement.triggerEvent(EventType.hideDropdown); |
| 555 | }); |
| 556 | |
| 557 | return this; |
| 558 | } |
| 559 | |
| 560 | getValue<B extends boolean = false>(valueOnly?: B): EventChoiceValueType<B> | EventChoiceValueType<B>[] { |
| 561 | const values = this._store.items.map((item) => { |
no test coverage detected