3.0.0-rc.5
https://codepen.io/Aurelius333/pen/VwaLvZR
The content should disappear because of the v-if.
The content does not disappear. Instead, I get this warning:
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next
at <App>
In Chrome, I get this error:
Uncaught (in promise) TypeError: Cannot read property 'parentNode' of null
at remove (vue@next:7235)
at performRemove (vue@next:5662)
at remove (vue@next:5680)
at Object.remove (vue@next:2317)
at unmount (vue@next:5637)
at patch (vue@next:4693)
at componentEffect (vue@next:5248)
at reactiveEffect (vue@next:391)
at callWithErrorHandling (vue@next:1274)
at flushJobs (vue@next:1427)
In Firefox, I get this error:
Uncaught (in promise) TypeError: child is null
vue next:7235
vue next:5662
vue next:5680
vue next:2317
vue next:5637
vue next:4693
vue next:5248
vue next:391
vue next:1274
vue next:1427
vue@next:7235:26
Doing any of the following seems to make this work and stop the error from happening:
<form> elementv-model on the <input>@submit event handler to the <form><div> around the <teleport>It works on Chrome and Safari. What browser are you using?
@posva Thanks for your response!
I tried it on all of these browsers, and it's not working on any of them:
I've been using the CodePen debug link: https://cdpn.io/Aurelius333/debug/VwaLvZR/bZrQWEzQVVVk
Did you type something into the input before clicking the "Cancel" button? It only seems to error if you type something into the input first.
It does happen when typing!
I am trying to fix it.
Most helpful comment
I am trying to fix it.