You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(going to leave this bug open since I never made a formal report)
Thanks, for the report, I'm looking into it. The TLDR is that the value property is being triggered before the element connects and Lit's lifecycle has started so it never toggles the valueHasChanged property.
Describe the bug
Select element does not show selected values on first render since 3.18.
Demo
I'll link two stackblitz demo. 2.17.1 - wihtout bug, and 2.18 - with bug(does not show values).
2.17.1 (values rendered) https://stackblitz.com/edit/vitejs-vite-q2mcgs?file=package.json,src%2Fhome-page.ts
2.18 (no values) https://stackblitz.com/edit/vitejs-vite-y9ciev?file=src%2Fhome-page.ts&terminal=dev
But if you await promise and request update, then values get rendered.
Uncomment this in 3.18 example in home-page.ts :
Screenshots
3.17.1
3.18
Browser / OS
The text was updated successfully, but these errors were encountered: