Skip to content

v-attr behaving differently in 0.12.8 #1105

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

Closed
gapipro opened this issue Jul 31, 2015 · 0 comments
Closed

v-attr behaving differently in 0.12.8 #1105

gapipro opened this issue Jul 31, 2015 · 0 comments

Comments

@gapipro
Copy link

gapipro commented Jul 31, 2015

So after last update v-attr is behaving differently then before.

Mostly this affects image loading.

For example when you load image like this

<img v-attr="src:demo.url" />

In previous version until demo.url was not set src attribute was not inserted into DOM.

But in latest version until demo.url is not set src attribute equals to undefined. That triggers image download on invalid url.

I know it can be fixed with v-if="demo.url" but previous syntax was much cleaner.

You can see this issue here: http://jsfiddle.net/v8g6csff/

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

2 participants