Skip to content
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 with CLASS weird V-T directive behaviour #226

Closed
karol-f opened this issue Sep 28, 2017 · 3 comments
Closed

V-IF with CLASS weird V-T directive behaviour #226

karol-f opened this issue Sep 28, 2017 · 3 comments

Comments

@karol-f
Copy link

karol-f commented Sep 28, 2017

vue & vue-i18n version

[email protected], [email protected]

Reproduction Link

https://www.webpackbin.com/bins/-Kv7F4nCE6JXglvqh0WZ

Steps to reproduce

  • V-IF with any class attribute added, V-T directive appended inside
  • V-ELSE with V-T directive on it

What is Expected?

Toggling translation would work.

What is actually happening?

Toggling V-IF creates V-ELSE translation inside it on top of correct translation

@karol-f karol-f changed the title V-IF with CLASS wierd V-T directive behaviour V-IF with CLASS weird V-T directive behaviour Sep 28, 2017
@kazupon
Copy link
Owner

kazupon commented Oct 3, 2017

Thank you for your reporting!

I seem that this behavior is bug of vue when used custom directive together with v-else(v-if).
see the small repro link
https://jsfiddle.net/fjfnxq2r/2/

@mstefaniak
Copy link

mstefaniak commented Oct 24, 2017

It looks the same. Did you pass it by to Vue repository? Is there a bug reported which I can follow?

@kazupon
Copy link
Owner

kazupon commented Mar 16, 2018

This behavior is spec of Vue.
As the workaround, You can use key special attribute.
See the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants