Closed Ryex closed 1 month ago
🤔 This is interesting. I think we would need a MutationObserver attached to <sl-select>
It seems like handleValueChange
on <sl-select>
can force an update.
I was also able to overcome issue this with signals by forcing the update on a signal subscription https://codepen.io/Ryex-the-bashful/pen/wvLpOVa
Describe the bug
At first I thought this was a regression on #729 but it seems it's more of a case where there are situations where the
sl-option
can change without theslotchange
event firing.To Reproduce
Steps to reproduce the behavior:
sl-option
's from containing custom component state in a lithtml
templateDemo
https://codepen.io/Ryex-the-bashful/pen/JjVZjZy
Screenshots
Browser / OS
tested latest Firefox and Edge
Additional information
I tried force an update but without sub classing adding a mutation observer I couldn't come up with a method