Open kalaomer opened 1 month ago
Hey @kalaomer from a brief check, I found that both the native select and the one from shadcn/ui work as expected. Please provide us with a reproduction repository, maybe something is conflicting with the rest of the UI / setup.
No it's not working the shadcn-ui select menu is also nto working inside the Modal.
Hey @areeburrub, please create a public repo and post it here, so we can have a look.
Hey @panteliselef this repo is reproducing the issue.
https://github.com/areeburrub/clerk-userpage-issue
the problem is that the shadcn-ui Select Menu is not working inside the
Steps:
PS: found a way around it also
if we remove the <SelectPrimitive.Portal>
wrapper from the SelectContent in the @/components/ui/seletct.tsx
then it works as expected.
<SelectPrimitive.Portal>
...
</SelectPrimitive.Portal>
check this
https://github.com/shadcn-ui/ui/issues/1647#issuecomment-2470219660
Preliminary Checks
[X] I have reviewed the documentation: https://clerk.com/docs
[X] I have searched for existing issues: https://github.com/clerk/javascript/issues
[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
-
Publishable key
-
Description
Hi everyone;
I'm developing on Nextjs and using Clerk's components. And i want to add a custom page to user's profile modal to change their system language from select box. And I created a component based on UserButton.UserProfilePage. But I can not activate click action on select element because of a focus event. Here is my code;
After ignore focus event on select, then select is working as expected.
Because of this bug, I can not use shadcn's components as well inside custom profile pages.
Environment