3lang3 / react-vant

React mobile UI Components base on Vant
https://react-vant.3lang.dev
MIT License
1.33k stars 191 forks source link

fix(tabs): line indicator transition bug (#550) #615

Closed luo3house closed 1 year ago

luo3house commented 1 year ago

Fix #550

react-activation set display none for child elements, that causes line transition stops calculate.

In this PR, line transition does calculate by useUpdateEffect() after react-activation re-shows child elements on mount.

Also fix a potential bug of type toggle. Reproduction: https://stackblitz.com/edit/vitejs-vite-umbtuh Steps to reproduce:

github-actions[bot] commented 1 year ago

PR preview has been successfully built and deployed to https://react-vant-pr-615.surge.sh.