Closed luo3house closed 1 year ago
Fix #550
react-activation set display none for child elements, that causes line transition stops calculate.
react-activation
In this PR, line transition does calculate by useUpdateEffect() after react-activation re-shows child elements on mount.
useUpdateEffect()
Also fix a potential bug of type toggle. Reproduction: https://stackblitz.com/edit/vitejs-vite-umbtuh Steps to reproduce:
type
PR preview has been successfully built and deployed to https://react-vant-pr-615.surge.sh.
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()
afterreact-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: