Skip to content

Commit c33c200

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. PiperOrigin-RevId: 318330100
1 parent b9468f7 commit c33c200

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)