Open cloudinary upload widget inside a Shadcn UI dialog #3234
Replies: 3 comments 1 reply
-
Did you manage to find a way, i'm also facing this issue |
Beta Was this translation helpful? Give feedback.
-
Also facing this issue. |
Beta Was this translation helpful? Give feedback.
-
I have implemented a solution to handle interactions with an iframe created by upload widget using two main steps:
This implementation is a trade-off as it may reduce the isolation and focus that a modal Dialog typically provides. While it allows for interaction with the iframe, it also means the Dialog won't close automatically when clicking outside, potentially leading to a cluttered user interface if the user forgets to close it manually. |
Beta Was this translation helpful? Give feedback.
-
I've tried all different way to implement this, but each way just doesn't work.
The UI I want to try and achieve is that an original dialog should be open. And then when a user clicks on an upload image button then another dialog should be rendered on top of the old dialog (which of course Shadcn UI can do). But I want the Cloudinary widget to be opened inside this newly opened dialog, which sadly doesn't. The behaviour I currently have is that when the new dialog is opened. It's empty and then when I close it, the cloudinary widget flashes and also closes, taking me back to the old dialog. Any help on this?
Beta Was this translation helpful? Give feedback.
All reactions