Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix handling v-if along with v-for on a template tag #2663

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

Merged
yyx990803 merged 2 commits into vuejs:dev from simplesmiler:simplesmiler-patch-2
Apr 13, 2016
Merged

Fix handling v-if along with v-for on a template tag #2663

yyx990803 merged 2 commits into vuejs:dev from simplesmiler:simplesmiler-patch-2
Apr 13, 2016

Conversation

@simplesmiler
Copy link
Member

@simplesmiler simplesmiler commented Apr 12, 2016

Proposed fix for #2657

this.linker = linker
}

function hasDirectives (el) {
Copy link
Member

@yyx990803 yyx990803 Apr 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be simpler, since v-for and v-if are the only ones that can work on <template>, and v-for has higher priority than v-if, it seems v-if is the only thing that we need to check.

Copy link

I'm unsure if this relates: while working on #2619, I noticed, that v-for is evaluated before slot, besides the priority says otherwise.
Could have the same origin? (although it is handy to have v-for before slot)

Copy link
Member Author

@paulpflug are you talking about something like <slot v-for="...">? I don't think it's related, no.

Copy link

@simplesmiler fine. It just attracted my attention that in both cases priorities don't work (the way I understand them 😄)

Copy link
Member Author

@paulpflug this one has to do with the fact that <template> loses all attributes when being turned into a fragment factory 😉

paulpflug reacted with thumbs up emoji

@simplesmiler simplesmiler changed the title (削除) Fix handling multiple directives on a template tag (削除ここまで) (追記) Fix handling v-if along with v-for on a template tag (追記ここまで) Apr 13, 2016
@yyx990803 yyx990803 merged commit f28260a into vuejs:dev Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /