Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v2.3.0
,simple.js 的 demo 中,当勾选transitionName
及focus
和click
后,连续点击trigger
,会随机发生focus
和click
连续触发(间隔非常短,一般只有不到 20ms)的情况,一般focus
在前、click
在后,从而导致气泡弹出的一瞬间又收回了。这里有两段录像展示,下载地址:
http://pan.baidu.com/s/1c0FEp7U
密码: 4rna
其中 bug-demo 为 bug 重现的录像,patched 为修正后的演示录像。
请注意观察 console 中的时间和事件信息,其中记录了每次触发事件相应的事件名称,以及此时组件的状态。在有错误发生的地方会有红色字体的信息出现。
本 PR 中的代码即为错误演示代码,clone 下来后直接运行即可尝试。
(环境为 OS X 10.10.4 + Chrome 44 beta on MacBook Pro)