-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
v-if / v-else not working with :type + v-model #6918
Comments
I'd like a take a look at this if no one is on it yet :) |
This seems to be strongly related to the dynamic type |
It seems that we need to add a pre condition in https://github.com/vuejs/vue/blob/dev/src/platforms/web/compiler/modules/model.js#L31 |
@misoguy OK, you come first 😭 |
We also need to consider I'm sorry to dirty your issue 😃 |
I've been digging into this issue for a while and realized that it's not that simple.
and make this case to work as well. I'll work on this and send a PR :) |
@gebilaoxiong My browser didn't refresh and didn't see your comment and PR before commenting :( I guess this issue is closed then? |
I thought no one was in the process of it, so it is repaired I don't know if there is any other problem |
@gebilaoxiong I should have commented that I was gonna work on it during the weekends.
as well. I don't think there is any more problem regarding this issue 👍 |
you can use your code to open a PR I will merge my code to yours |
@gebilaoxiong Would that be ok? But your implementation and test code seems much better than mine! :) I'll open a PR as you suggested and let you decide whether or not to merge yours with mine :) |
@gebilaoxiong I have opened a PR as you suggested and only included the code to check By the way, while implementing my first PR on |
@misoguy have a nice day. 😄 |
Thank you! |
Version
2.5.2
Reproduction link
https://jsfiddle.net/50wL7mdz/71931/
Steps to reproduce
run the jsfiddle example
What is expected?
v-else
to workWhat is actually happening?
v-else
seems to have no effectmaybe related/duplicate with issue #6917 or issue #6907
The text was updated successfully, but these errors were encountered: