-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<teleport v-if> with form input #1813
Comments
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. |
Facing the same issue. Should |
@m4heshd I think the
|
@Aurelius333 I realized that minutes after posting the above. I agree. Docs should mention that. Either way I'm still using In my case, there's no alternative because I'm writing an Electron app that has a title bar which lives inside the |
Version
3.0.0-rc.5
Reproduction link
https://codepen.io/Aurelius333/pen/VwaLvZR
Steps to reproduce
What is expected?
The content should disappear because of the
v-if
.What is actually happening?
The content does not disappear. Instead, I get this warning:
In Chrome, I get this error:
In Firefox, I get this error:
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>
The text was updated successfully, but these errors were encountered: