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

It is recommended that click-outside-x is compatible with shadow dom #5

Open
zhangdi2062 opened this issue Feb 16, 2022 · 1 comment

Comments

@zhangdi2062
Copy link

The problem

When using shadow dom, the target of the event when it is passed out is the shadow, not the real target element, so the drop-down menu option cannot be selected, and the same is true for the color picker.

Details

Can I not get the target attribute in v-click-outside-x.js line 26, but get the original target through the event.composedPath() method.

@SergioCrisostomo
Copy link
Owner

@zhangdi2062 do you have a suggestion for this change? Happy to review a PR if you can make one.

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

2 participants