Sets the first selected option as first in the keyboard focus order.
()
| 912 | |
| 913 | /** Sets the first selected option as first in the keyboard focus order. */ |
| 914 | private _setNextFocusToSelectedOption() { |
| 915 | // Null check the options since they only get defined after `ngAfterContentInit`. |
| 916 | const selected = this.options?.find(option => option.isSelected()); |
| 917 | |
| 918 | if (selected) { |
| 919 | this.listKeyManager.updateActiveItem(selected); |
| 920 | } |
| 921 | } |
| 922 | |
| 923 | /** Update the internal value of the listbox based on the selection model. */ |
| 924 | private _updateInternalValue() { |
no test coverage detected