We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
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.
demo.url
src
But in latest version until demo.url is not set src attribute equals to undefined. That triggers image download on invalid url.
undefined
I know it can be fixed with v-if="demo.url" but previous syntax was much cleaner.
v-if="demo.url"
You can see this issue here: http://jsfiddle.net/v8g6csff/
The text was updated successfully, but these errors were encountered:
fix v-attr property setting (should be input.value only) (fix #1104 & #…
6d4ddd6
…1105)
No branches or pull requests
So after last update v-attr is behaving differently then before.
Mostly this affects image loading.
For example when you load image like this
In previous version until
demo.url
was not setsrc
attribute was not inserted into DOM.But in latest version until
demo.url
is not setsrc
attribute equals toundefined
. 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/
The text was updated successfully, but these errors were encountered: