Input and Textarea Inside ShadCN Dialog Not Allowing Typing #6957
mukiturrahman
started this conversation in
General
Replies: 1 comment
-
✅ Solution: Move the Dialog outside the DropdownMenu. Use state (useState) to open the dialog manually. Prevent the dropdown from closing when selecting "Edit". 💡 Steps to Fix It:
🔧 Why This Works:
🎯 Expected Behavior: Click menu button (...) → Dropdown opens. Click "Edit" → Dialog opens without closing the dropdown. Make changes and click "Save Changes" → Updates data, closes dialog. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried using a custom open state to handle the dialog opening, but then my drop down menu doesn't work. Can anyone please guide me in finding the error?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions