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

fix(runtime-dom): remove attribute when value is falsy. #1582

Closed
wants to merge 2 commits into from
Closed

fix(runtime-dom): remove attribute when value is falsy. #1582

wants to merge 2 commits into from

Conversation

zhangzhonghe
Copy link
Member

see #1576

@yyx990803
Copy link
Member

  1. According to this RFC in 3.0 v-bind:foo="false" will render as foo="false" instead of removing the attribute

  2. This code path may have to deal with DOM properties that do not have corresponding attributes, so only removing the attribute will not cover all possible cases.

see cb6a091

@yyx990803 yyx990803 closed this Jul 14, 2020
@zhangzhonghe zhangzhonghe deleted the patch-2 branch July 15, 2020 01:49
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 participants