cascader icon indicating copy to clipboard operation
cascader copied to clipboard

fix: long label panel position abnormal

Open wanpan11 opened this issue 1 year ago • 2 comments

修复 open=true 时 setActiveValueCells 执行时机,避免 pannel 更新不及时造成的定位计算错误 #https://github.com/ant-design/ant-design/issues/47635

https://github.com/react-component/cascader/assets/38714194/ffa3aaf5-67b0-4c2c-8441-94a42a0258ac

wanpan11 avatar Mar 12 '24 05:03 wanpan11

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cascader ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2024 2:58pm

vercel[bot] avatar Mar 12 '24 05:03 vercel[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.66%. Comparing base (fab1188) to head (652ee33).

:exclamation: Current head 652ee33 differs from pull request most recent head 4703b04. Consider uploading reports for the commit 4703b04 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #473   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files          23       23           
  Lines         604      604           
  Branches      182      182           
=======================================
  Hits          602      602           
  Misses          2        2           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 12 '24 05:03 codecov[bot]

改完后是什么效果?

afc163 avatar Mar 29 '24 10:03 afc163

改完后是什么效果?

现在不会出现 panel 定位异常的问题

https://github.com/react-component/cascader/assets/38714194/039c95ee-f38e-4c07-bdfd-d23f42d0d943

wanpan11 avatar Mar 29 '24 10:03 wanpan11

是说闪的那一下的问题么?

afc163 avatar Mar 29 '24 10:03 afc163

是说闪的那一下的问题么?

目前在点击选项卡 但是未选中结果取消后 的第二次显示时 panel 出现的位置不正确(open=false 时没有重置路径值导致)

https://github.com/react-component/cascader/assets/38714194/93a85542-a71c-4ad6-b56a-ef225a1a94c8

wanpan11 avatar Mar 29 '24 13:03 wanpan11

multiple 限制会导致这个问题 记录一下 https://github.com/ant-design/ant-design/issues/48208

wanpan11 avatar Apr 03 '24 08:04 wanpan11