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

Popper: add support for shadow dom #20763

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

rzyanhao
Copy link

@rzyanhao rzyanhao commented Feb 8, 2021

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

===============================================

when popper is rendered in shadow dom,the rootNode of it's reference is a shadow root, which type is document-fragment. getComputedStyle is not allowd to pass in document-fragment as argument. so, check the element's type and return if it is document-fragment.

btw,there should be a global config for 'appendToBody'

@element-bot
Copy link
Member

Deploy preview for element ready!

Built with commit e9551d7

https://deploy-preview-20763--element.netlify.app

@edum18
Copy link

edum18 commented Apr 27, 2021

@iamkun hey, please merge this, at least I've tested it and it fixed the errors!

@stale
Copy link

stale bot commented Apr 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants