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

When a props property is undefined, component does not render the received style. #749

Closed
hareku opened this issue Feb 20, 2020 · 5 comments

Comments

@hareku
Copy link
Contributor

hareku commented Feb 20, 2020

Version

3.0.0-alpha.5

Reproduction link

https://codepen.io/hareku/pen/PoqGdYB

Steps to reproduce

  1. Render ChildWithProps.
  2. Render ChildWithoutProps.

What is expected?

The span elements of ChildWithProps and ChildWithoutProps should have `style="font-size: red".

What is actually happening?

ChildWithoutProps does not have `style="font-size: red".


I think, even props is undefined, components should work the same as ChildWithProps.

@loiacon
Copy link
Contributor

loiacon commented Feb 21, 2020

@underfin
Copy link
Member

vuejs/rfcs#92.
If components with no props declaration, will be not implicit fallthrough attrs.

@yyx990803
Copy link
Member

yyx990803 commented Feb 21, 2020

Maybe class and style should be special cased even when no props are declared.

@ysj16
Copy link
Contributor

ysj16 commented Feb 29, 2020

Maybe class and style should be special cased even when no props are declared.

All attrs will fallthrough in vue 2.x

@yyx990803
Copy link
Member

@ysj16 see the RFC linked in the commit.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants