Skip to content

Commit eb3baca

Browse files
allan-chencopybara-github
authored andcommitted
refactor(select): Use pre-existing single-selection list logic.
Also fix list foundation so that tabindex is set correctly (closes #6143) PiperOrigin-RevId: 318506841
1 parent d36e986 commit eb3baca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/select/src/mwc-select-base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,8 @@ export abstract class SelectBase extends FormElement {
578578
},
579579
addClassAtIndex: () => undefined,
580580
removeClassAtIndex: () => undefined,
581+
getSelectedIndex: () => this.index,
582+
setSelectedIndex: () => undefined,
581583
isTypeaheadInProgress: () =>
582584
typeahead.isTypingInProgress(this.typeaheadState),
583585
typeaheadMatchItem: (nextChar, startingIndex) => {

0 commit comments

Comments
 (0)