vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.85k stars 8.36k forks source link

Transition got different behavior in dev & prod mode #12465

Open CaiWenlie opened 4 days ago

CaiWenlie commented 4 days ago

Vue version

3.5.12

Link to minimal reproduction

https://play.vuejs.org/#eNqtVE1v00AQ/SuDLwWpsZsCF+MWCqrEhwQIInHxZVlPnG3Xu9buOk0V5b8zs05cB0KrSs0l3pk3z29m33idXLRtuuwwyZPCS6faAB5D14IWpj4rk+DL5Lw0qmmtC/ARtba/rNMVzJ1t4CjNPtgmEhwdAJ3uoab7sDU4nMNmC+lT0hpPAhb2Bs44/Ty4Dl+Upsh6baSEDgGbVouAdAIofnchWAPvpFbymhRvq5/xP2mf2brWWGQ9rC+ZOWG8CorKjGiQiuaiwjKBxlZ8sl2YKENnqYX3PAX0Ic4B6Fd8QWwvtFr2AmJIUn/WoAmQKy6IIt6O55WP50LU2Y4t26crsjt1FCiyUbd09OFWI3hpW6wokrLwCb0X3UTIQCTHu6BGscRtENZMHQbiHGwrpAq3cJK+9oDC45vSbPgNY0a+mr/4gu25tvU5nAyFPKQDemCU+FeT7Jy3Lgdjw0TQfG6w6gnpyrlV6jE5JheSM+aqTq+8NWTVWFomPHWl0X1ruSlyat6Tci6SfY4xNhG10cflAuX1gfiVX3GsTL479OiWZIchF4SrkQzA6cufX3FFz0OSPNNpQt+T/IHe6o419rD3nalI9ggX1X6Ki6FMPfOXq4B0V9umWCgjNxFfJrQsvFD/a/1O7sv0VayjidIUd6v6wK7fv26L6Xk0MkyLjJ4fdOjePQ6fgaeRcPpoCZs/mJawdA==

Steps to reproduce

occurs when there is a class on Transition tag and there is a KeepAlive at the same time. in dev mode, everything is ok. but when switch to prod mode, the toggle will not work. image image

What is expected?

dev & prod should have consistent behavior

What is actually happening?

transition not work in prod mode

System Info

No response

Any additional comments?

No response