Next.js Discord

Discord Forum

Cant get Shadcn's Select to work

Answered
American Kestrel posted this in #help-forum
Open in Discord
American KestrelOP
Anyone know whats wrong with this Select? The placeholder text wont show up;-;
Answered by aardani
try 'time' instead of 'Time'
View full answer

20 Replies

American KestrelOP
neither is the default value showing up
it looks like this
American
how use set value of order?
@American Kestrel Anyone know whats wrong with this Select? The placeholder text wont show up;-;
Please change your title to reflect more on the problem
American KestrelOP
changing
@American Kestrel Anyone know whats wrong with this Select? The placeholder text wont show up;-;
American
try to remove value={order} and at it to defaultValue={order}
@American Kestrel can I see the code that defines order and setOrder / see the useState part
American KestrelOP
yep
@American try to remove value={order} and at it to defaultValue={order}
American KestrelOP
where is this, sorry, i dont see value={order}
here you go
try 'time' instead of 'Time'
Answer
American KestrelOP
ok
testing
it worked!
thank you so much!
could I ask you one more question
never mind
thanks again!
@American Kestrel could I ask you one more question
if its a different problem, create a new post for the benefit of others