-
-
Notifications
You must be signed in to change notification settings - Fork 237
fix: Motion state record #188
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
Conversation
怎么发现的... |
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
==========================================
- Coverage 85.74% 85.43% -0.31%
==========================================
Files 7 7
Lines 505 508 +3
Branches 146 143 -3
==========================================
+ Hits 433 434 +1
- Misses 72 74 +2
Continue to review full report at Codecov.
|
语雀同学报的 |
语雀那个问题是突然出现的,而且他们应该还用的是 antd 3.x,可能不是这个问题。 |
他们最近升级完 v4 了,只是为了保持品牌一致性所以一些 design token 改成了 v3 的。组件已经是新的了。 |
#189 先 revert 掉,我看看是啥原因 |
onMotionEvent 死循环了,先回滚再 patch 一个版本 |
* fix: Motion state record * update test case
* fix: Motion state record (#188) * fix: Motion state record * update test case * fix: Motion state record
横向快速移动鼠标,tooltip 会不消失:
https://codesandbox.io/s/beautiful-faraday-zfmgw?file=/index.js
原因在于 setState 是异步操作被 batch update,导致 motion 没有启动就被结束,而 Trigger 层以为已经触发了 motion 就继续执行锁逻辑导致 PopupInner 弹出后没人管的状态。
这个 fix 添加了一个额外的事件监听用于检查是否真的在进行动画。可能会有新 bug,随遇随修。