-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select initial value #82
Comments
Thanks for the report, let me take a look and see whats up. |
When this is even affecting the examples in the documentation, then I am wondering why this has not been caught in the testing process? 🤔 |
im not sure i follow. This issue is a race condition that is largely dependent on timing of connection of elements and a few other factors, so its pretty challenging to reproduce. The examples worked fine on the actual documentation page. As for the bug itself, I fixed it, added regression tests, and backported the fix to Shoelace, and it should be part of the next alpha release. |
Sorry, I was not at all my intention to come with a harsh comment, though I can understand now, that I probably could have asked this a little better. I was just thinking that the current demo-code could easily be tested between releases, but I fully understand that there can be relevant timing issues, which I did not consider. Thanks a lot for your great work with Web Awesome 😊 |
All good! FWIW, this has been a long standing issue with this component that I was never quite able to fully wrangle until recently. If you're curious about the fix, the PR for Shoelace is here: and the original issue: and is roughly the same thing I did to fix it in web awesome. |
@ziofat Better yet, let me know if this one works for you. https://codepen.io/paramagicdev/pen/abeEmZO?editors=1000 This forces the |
@KonnorRogers It works! |
Describe the bug
In alpha.4 setting value on the wa-select doesn't seem to set initial value.
To Reproduce
Demo
https://backers.webawesome.com/docs/components/select#setting-initial-values
Example on documentation page works (maybe because its SSR?), but the editable example on codepen doesn't.
Screenshots
Browser / OS
The text was updated successfully, but these errors were encountered: