Preloading Selected Values in Select and Checkbox Components (ShadCN for Svelte) #1747
Unanswered
leonardomporto
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Does Not Show Initial Value
I have a status field in my advertisement object, which can be "published" or "draft". The goal is to load the saved value from the database and display it correctly in Select.Trigger.
Problem:
Select.Trigger only displays the placeholder instead of the selected value.
When I select an option, it updates correctly.
I need the saved database value to be displayed immediately on load.
like this simple code.
I have the same problem with checkbox.
If anyone can provide guidance or the best approach for handling this in ShadCN for Svelte, I would greatly appreciate it!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions