You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first time using Plasmo to build browser extension. So far the experience has been good except for the thing that is causing the unexpected behavior of CSUI.
I'm using Shad-cn as the UI Library and React.JS. (I've confirmed with shad-cn and it works as expected in standalone react app)
I've created inline anchor so that my content script UI renders next to a target element. Within the content script, I have a Select input, which behaves like a dropdown and opens as the user click it. As soon as user clicks over it, the dropdown cuts to the bottom of the extension going outside of the extension as you can see in the screenshot attached.
Points to consider
1 - The Select dropdown isn't available in DOM and enters in the DOM tree after user clicks the element.
2 - The select dropdown options doesn't take styles that are provided after it enters the DOM.
3 - The Select dropdown option renders outside of the extension widget, overflowing with the webpage.
Assumption is that the same will happen with Modals, Dropdowns and any element with such nature.
This is my first time using Plasmo to build browser extension. So far the experience has been good except for the thing that is causing the unexpected behavior of CSUI.
I'm using Shad-cn as the UI Library and React.JS. (I've confirmed with shad-cn and it works as expected in standalone react app)
I've created inline anchor so that my content script UI renders next to a target element. Within the content script, I have a Select input, which behaves like a dropdown and opens as the user click it. As soon as user clicks over it, the dropdown cuts to the bottom of the extension going outside of the extension as you can see in the screenshot attached.
1 - The Select dropdown isn't available in DOM and enters in the DOM tree after user clicks the element.
2 - The select dropdown options doesn't take styles that are provided after it enters the DOM.
3 - The Select dropdown option renders outside of the extension widget, overflowing with the webpage.
Assumption is that the same will happen with Modals, Dropdowns and any element with such nature.
Important code snippets:
Maybe, this is a known issue and/or have a valid solution already to this problem. Either ways, I'll appreciate the solution to this.
The text was updated successfully, but these errors were encountered: