I tried to add shadcn menubar to bubble menu but not working #4710
-
My and currently my menubar is just example from shadcn lib which look like this Tiptap.setup.movwell you can see here what's the problem. I am guessing when I click menu, bubble menu removing focus resulting removing entire menu as well from Dom and then menu drop down get rendered random in corner. I don't know how to solve it ? might need someone help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm having the same issue. Did anyone find a fix? |
Beta Was this translation helpful? Give feedback.
-
You need to keep the bubble menu open when the shadcn menu is open with the shouldShow prop on the bubble menu. On clicking anything in the menu you need to have it also toggle a Boolean to keep the bubble menu active since you've now blurred the editor. |
Beta Was this translation helpful? Give feedback.
You need to keep the bubble menu open when the shadcn menu is open with the shouldShow prop on the bubble menu. On clicking anything in the menu you need to have it also toggle a Boolean to keep the bubble menu active since you've now blurred the editor.