We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
arco-design/components/Trigger/index.tsx
这里 off 并未给 capture 参数
Line 418 in 5e771d6
预期能够正确取消事件监听
组件设置 clickOutsideToClose={{ capture: true, }}
点击按钮,打开弹窗,然后控制台输入代码 getEventListeners(document)['mousedown'][0],发现已经正确监听了事件
点击空白位置,关闭弹窗,再次输入前一步代码,发现事件还在
PS:通过设置 capture 为 false 可以作为对比
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Basic Info
Extra info
arco-design/components/Trigger/index.tsx
这里 off 并未给 capture 参数
arco-design/components/Trigger/index.tsx
Line 418 in 5e771d6
What is expected?
预期能够正确取消事件监听
Steps to reproduce
组件设置
clickOutsideToClose={{
capture: true,
}}
点击按钮,打开弹窗,然后控制台输入代码 getEventListeners(document)['mousedown'][0],发现已经正确监听了事件
点击空白位置,关闭弹窗,再次输入前一步代码,发现事件还在
PS:通过设置 capture 为 false 可以作为对比
The text was updated successfully, but these errors were encountered: