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.
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.