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

在组件里 做事件监听 这个做法实在不推荐 #10

Open
80boys opened this issue May 15, 2018 · 2 comments
Open

在组件里 做事件监听 这个做法实在不推荐 #10

80boys opened this issue May 15, 2018 · 2 comments

Comments

@80boys
Copy link

80boys commented May 15, 2018

很多人的项目结构 会自己监听右键 屏蔽原始菜单之类的操作!

@HappyFeet1
Copy link

你好,为啥我做了右键之后,有这样一个警告呢
[Violation] Added non-passive event listener to a scroll-blocking event. Consider marking event handler as 'passive' to make the page more responsive. See

@stalkercn
Copy link

这就是为什么会有target属性 请看源代码

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

No branches or pull requests

4 participants