Realized from a conversation that the Select wasn't reacting to updates to ListOptionGroup slotted content updates.
๐ฉโ๐ป Implementation
Simply needed to have the Select observe the listOption property of the ListOptionGroup elements it owns, and then call slottedOptionsChanged directly. Also required a slight change to how we maintain the currently selected option when the options are changed, particularly for when the selected option is removed.
๐งช Testing
Added a few unit tests.
โ Checklist
[ ] I have updated the project documentation to reflect my changes or determined no changes are needed.
Pull Request
๐คจ Rationale
Realized from a conversation that the
Select
wasn't reacting to updates toListOptionGroup
slotted content updates.๐ฉโ๐ป Implementation
Simply needed to have the
Select
observe thelistOption
property of theListOptionGroup
elements it owns, and then callslottedOptionsChanged
directly. Also required a slight change to how we maintain the currently selected option when the options are changed, particularly for when the selected option is removed.๐งช Testing
Added a few unit tests.
โ Checklist