Skip to content

Conversation

defcc
Copy link
Member

@defcc defcc commented Dec 10, 2016

fix #4432

template: '<input :some.prop="some" :id="id">',
data: {
some: 'hello',
id: 'world'
Copy link
Member

Choose a reason for hiding this comment

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

Actually, the test case should use a null or false value and check that the id attribute is absent on the element

Copy link
Member Author

@defcc defcc Dec 10, 2016

Choose a reason for hiding this comment

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

Thanks, I updated the test case

@posva
Copy link
Member

posva commented Dec 10, 2016

I can't believe the fix was that easy 😆
Good job again @defcc 👍

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

I'd like to see the tests pass on CI, though 😆

@defcc
Copy link
Member Author

defcc commented Dec 10, 2016

For the test case, the id attribute is special, it reflects both with attribute and property.

@yyx990803 yyx990803 merged commit 183bd43 into vuejs:dev Dec 11, 2016
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

Successfully merging this pull request may close these issues.

[2.x] v-bind not removing attributes with falsy values when another attribute with .prop modifier appears first

3 participants