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

不能响应事件 #24

Open
panmissl opened this issue Nov 2, 2021 · 0 comments
Open

不能响应事件 #24

panmissl opened this issue Nov 2, 2021 · 0 comments

Comments

@panmissl
Copy link

panmissl commented Nov 2, 2021

远程组件加载后,只能显示内容,不能响应事件,比如按钮点击、下拉框的点击等都不生效。不知道你们是否也遇到这个问题了?
如下图,我使用了一个弹出框,里面加载了远程组件,但加载后点击里面的按钮都不会响应,我网上搜了下说是react不支持shadow dom的事件传递。下面是两个博客的描写:
https://stackoverflow.com/questions/37866237/click-event-not-firing-when-react-component-in-a-shadow-dom
https://blog.csdn.net/qq_36157085/article/details/105394604

image

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