组件被transition包裹,并且组件被transition的mode是out-in,组件第一行代码为注释会导致无法渲染dom / first line comment cause render error when component be wrapped with transition and transition mode="out-in"
Version
3.0.5
Reproduction link
Steps to reproduce
root组件:
else div
修改active后无法显示div组件,mode="in-out"问题可解决
What is expected?
createCommentVNode不影响transition组件的正常渲染
What is actually happening?
当我在程序中添加一个功能后,部分页面无法加载,分析后,发现是transition的mode=“out-in”和createCommentVNode不兼容
the problem 这个问题可能在transition的mode= out-in mode="in-out"问题便不会复现
This is expected, you even have a warning in the console.
Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue if it turns out to be a bug 🙂
the warning is "Component inside