-
Notifications
You must be signed in to change notification settings - Fork 357
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
[DropDown] 组件悬停出现列表后,某些情况下会出现变量错误,导致后续悬停功能失效 #2598
Comments
👋 @loganylwu,感谢给 TDesign 提出了 issue。 |
|
2023-07-20.11.19.23.mov |
协助处理问题经过调试和分析,我得出结论 tdesign-vue/src/popup/popup.tsx Line 310 in f516ae8
此处判断变量 visible=>true && mouseInRange=>true ,导致直接return了。
组件命名已经关闭了,为什么还会出现mouseInRange=true的情况呢?
建议修改方向方案1. dropdown需要再动画结束后,即组件真正已经销毁后,再进行关闭事件的调用 |
fixed in 1.6.4 |
测了一下,1.6.4版本依然会有问题,多点击2次就出现了 |
fixed in 1.8.0 |
重现链接
https://tdesign.tencent.com/vue/components/dropdown
参考操作手法
#2598 (comment)
经过我测试发现,其实在#2352 是最稳定的复现逻辑了,错误原因也是一样
重现步骤
复现步骤比较麻烦,请参考视频
期望结果
悬停能正常显示
实际结果
悬停不能正常显示
The text was updated successfully, but these errors were encountered: