Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please extend your library to use it in ShadowDOM? #139

Open
DreamCloudProject opened this issue Oct 7, 2023 · 1 comment
Open

Comments

@DreamCloudProject
Copy link

DreamCloudProject commented Oct 7, 2023

image

Because of that line on the screenshot, I can't use a tooltips in the ShadowDOM. I've managed to initialize inside web-component, because you have option to init with element instead of selector. Otherwise it's doesn't work if you are use selector in ShadowDOM.

The same problem with tooltips, because they are still using a DOM to append elements. I suggest to extend Tooltip class with the parent element, where the developers can specify a root element to append tooltips.

@DreamCloudProject
Copy link
Author

DreamCloudProject commented Oct 7, 2023

I've solved it to add positon absolute for the Tooltip:

this.map = new jsVectorMap({ onRegionTooltipShow(event, tooltip, code) { tooltip.css({ position: 'absolute' }); } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant