vscode-elements / elements

Web component library for developing Visual Studio Code extensions
https://vscode-elements.github.io
MIT License
157 stars 29 forks source link

Programmatically update vscode-single-select #16

Closed nk-coding closed 3 years ago

nk-coding commented 3 years ago

Is there a way to programmatically update the selected option of a single-select (not in Combobox mode)?
I tried setting value and selectedIndex, however this does not update _labelText, therefore the label is not updated
I could change the slotted elements (as this would result in _onSlotChange being called), however I think this is more a hack than a solution

bendera commented 3 years ago

It's definitely a bug, it should work.

bendera commented 3 years ago

Fixed.