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
还发现在modal对话框的时候, 关闭事件是可以多次触发的, 行为上应该是仅仅允许关闭一次的~ #1975
Comments
It will be better to write your issue/comment in English, so more people can understand you. |
在 真机 上也有这个问题吗? |
这玩意只在 android 下出现,加个锁 |
@silentcloud 这个锁,确实加的不对了。。直接导致了功能问题。 @zhang740 跟进下 |
触发关闭之后, 关闭动画未结束之前, popup会拦截输入事件, popup属于不可交互状态 所以可以选择在开始 事件拦截可以通过在 |
…sign#1975" This reverts commit 67ee450.
Version
2.0.0
Environment
win10 1703 chrome 62 stable
Reproduction link
https://mobile.ant.design/kitchen-sink/components/modal?lang=zh-CN
Steps to reproduce
看gif~
What is expected?
同一个modal, 在活动的生命周期里, 只能执行一次关闭事件, 确认事件也一样~
What is actually happening?
可以多次触发
今天我在WEUI也发现有这个bug~
Tencent/weui#678
虽然很少用户会多次点击, 一个关闭~ 除非是十分焦急的时候~ 还是有可能的~
先看图~
我其他测试了, 除了model有一些例子, 因为出现toast, 挡住了所以行为正确了, 其他都有问题, 虽然是小问题, 影响不大, 但是感觉大厂嘛~ 组件行为还是需要和原生靠近一些滴~~看两个大厂谁修得快~
The text was updated successfully, but these errors were encountered: