innerHTML set from render function goes missing when patching?
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
When you arrive the inner html provided to the Comp's div
is visible, when the delete
is toggled the innerHTML
should end up wrapped in a del
element but instead the contents of the div
becomes nothing.
A workaround can be demonstrated by setting keys
to true
in Comp.vue
which will assign different keys to the div
s which then (i think) forces the elements to not try patch between each other
What is expected?
it to work the same with keys as without since the key is not supposed to be needed
What is actually happening?
element goes missing
System Info
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 65.15 GB / 88.39 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
Browsers:
Chrome: 116.0.5845.110
npmPackages:
vue: ^3.3.4 => 3.3.4
Any additional comments?
No response
I think the bug is caused by innerHtml rather than key. In this example, there are no keys, but bug still appears. And main logic about this part is in renderer.