-
Notifications
You must be signed in to change notification settings - Fork 424
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
Feat: shadow dom, fixes issue #889 #890
Conversation
megatron0000
commented
Oct 28, 2023
•
edited by ghiscoding
Loading
edited by ghiscoding
- Adds an option to Slick.Grid to make it work when inside a shadow DOM tree. It did not work because the shadow DOM is not affected by external stylesheets, so to fix this we have to add dynamic stylesheets directly inside the shadow DOM.
- fixes issue slickgrid breaks when using shadow DOM because slickgrid relies on global CSS in the <head> #889
Does the new example make sense where it is ? (i.e. next to the basic example). If there are problems in this proposed solution, I'd be happy to review |
looking good, we can add it to the list of Examples in the Examples Wiki after it gets merged |
- backported from PR #890 to support the creation of SlickGrid inside ShadowDOM
@megatron0000 thanks for the contribution, this is now available in today's release v5.4.0. BTW, I'm not sure all controls/plugins will all work properly because of some body selector and event listeners. I never use ShadowDOM so if you find some issues please contribute again 😉 |