Skip to content

Add clarification about inheritAttrs and class/style bindings (#1787) #1969

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

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

leopiccionia
Copy link
Contributor

It closes #1787, and overrides #1796.

It adds a note to the guide, clarifying that inheritAttrs: false doesn't affect class and style bindings, and updates a related misleading example (class doesn't ever appear in $attrs, see fiddle).

cc @phanan

…s#1787)

* Add note to the guide
* Update example, removing `class` attribute to avoid confusion
@phanan
Copy link
Member

phanan commented Jan 30, 2019

This looks great, thanks!

@phanan phanan merged commit 1b68103 into vuejs:master Jan 30, 2019
@leopiccionia leopiccionia deleted the inherit-attrs branch January 30, 2019 14:29
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.

The example given for "Disabling Attribute Inheritance" doesn't work
2 participants