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
键盘事件 esc 被上层 DOM 触发,导致外层的 DOM 被关闭。
esc
键盘事件如果是被 viewer 成功触发的话,应该阻止继续冒泡。
但是现在事件好像是直接绑在 body 上的,这个能调整一下吗?
The text was updated successfully, but these errors were encountered:
可以给一个重现的demo吗
Sorry, something went wrong.
https://codesandbox.io/s/laughing-https-34bj9
按键盘 esc 键关闭 Viewer 会同时关掉上层的 Drawer。
Viewer
Drawer
v2.11.1 修复了这个问题
https://codesandbox.io/s/priceless-varahamihira-13ojb
No branches or pull requests
键盘事件
esc
被上层 DOM 触发,导致外层的 DOM 被关闭。键盘事件如果是被 viewer 成功触发的话,应该阻止继续冒泡。
但是现在事件好像是直接绑在 body 上的,这个能调整一下吗?
The text was updated successfully, but these errors were encountered: