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

:style with value 0 ignored #3905

Closed
paulpflug opened this issue Oct 11, 2016 · 0 comments
Closed

:style with value 0 ignored #3905

paulpflug opened this issue Oct 11, 2016 · 0 comments

Comments

@paulpflug
Copy link

Related to #3816

Vue.js version

2.0.1

Steps to reproduce

I having problems with reproducing on jsfiddle, and even in my projects it is inconsistent:

<div v-bind:style="style"></div>
data: ->
  style:
    top: 0

What is Expected?

div to have style="top:0px"

What is actually happening?

no top property in style

when I add this.style.left=0 at runtime it shows up - but on rerender it is missing again
Vue inspector also shows style.right=0

as a string it works as expected:

data: ->
  style:
    top: "0"
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

1 participant