 Add the ability to transfer your root to ReactMouseSelect instead of document, so that you can work with shadow dom export const React Mouse Select = ({ root = document, ... Then: elements = root.getElementsByClassName(itemClassName);
Add the ability to transfer your root to ReactMouseSelect instead of document, so that you can work with shadow dom
export const React Mouse Select = ({
root = document,
...
Then:
elements = root.getElementsByClassName(itemClassName);