Replies: 6 comments 1 reply
-
hey I'm having same "issue" |
Beta Was this translation helpful? Give feedback.
-
Up. any updates for this one? |
Beta Was this translation helpful? Give feedback.
-
Same question, any updates ? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, just a quick tip! You can use side="bottom" in to position it at the bottom, like this:
Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Another tip if anyone is having the issue and @dimmasyusuf 's suggestion is not working for you. My problem was that my list was very long and Shadcn's SelectContent component has a max-height of tailwind 96, which is 24rem / 384px. This caused a collision with the bottom of my parent component or my screen, not sure which. By default, Radix' popover inverts the side if a collision is detected, so it automatically sets the side to top even if you set it to bottom yourself. Anyways, if you still want a drop-down style select, the simple fixes are :
Hope it helps ! |
Beta Was this translation helpful? Give feedback.
-
I have a long list(around 500-600 items), when I search it doesn't show the items at the top first, its very annoying. I have tried some tips in the comments above but not working so far, does anyone have found a solution? |
Beta Was this translation helpful? Give feedback.
-
Hi, I've been using Shadcn for my apps and it's been easy to use along with the ui, it looks great!
I've hit a snag here, and could use some help.
I have a country select dropdown menu that the user can select. Obviously the list is huge.
Default state: "India" is selected. The problem is:
Possible fixes but not ideal:
Form Component Code:
System: MacBook Air M1, 2020; macOS Ventura 13.5
Browser: Chrome (Version 116.0.5845.179 (Official Build) (arm64)
Please let me know if any other details are required. Hoping for a quick resolution, thanks!
Beta Was this translation helpful? Give feedback.
All reactions