KeepAlive & root text node: Failed to execute 'insertBefore' on 'Node'
Vue version
3.2.40
Link to minimal reproduction
Steps to reproduce
- Type something in the
<input>
. - Click the Toggle button.
- Observe error.
What is expected?
No error.
What is actually happening?
Error in console, rendering update fails.
Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.
System Info
No response
Any additional comments?
- Happens in both dev and production mode.
- Seems to have been a problem for a while, it isn't new in 3.2.40.
- The root text node in the child seems to be required to cause the problem.
- If you don't type anything in the
<input>
, everything seems to be toggle fine. I assume some internal state is getting changed by the first re-render that breaks the second re-render.