Skip to content

Props not passed down to $attrs from route props #6426

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

Closed
adi518 opened this issue Aug 22, 2017 · 4 comments
Closed

Props not passed down to $attrs from route props #6426

adi518 opened this issue Aug 22, 2017 · 4 comments

Comments

@adi518
Copy link

adi518 commented Aug 22, 2017

Version

2.4.2

Reproduction link

https://www.webpackbin.com/bins/-Ks8plb2Lsqpt8Po3Rxg

Steps to reproduce

Setup a wrapping component which proxies all props to its child using v-bind="$attrs". Then try to pass props using vue-router API.

What is expected?

To have all props from route passed to component.

What is actually happening?

None pass.

@adi518 adi518 changed the title Props not passed to $attrs from Route. Props not passed to $attrs from Route props Aug 22, 2017
@posva
Copy link
Member

posva commented Aug 22, 2017

You have to remove the prop name from the Hello.vue component for it to work

@posva posva closed this as completed Aug 22, 2017
@lbogdan
Copy link
Contributor

lbogdan commented Aug 22, 2017

@posva The hierarchy is <router-view> -> <HelloWrapper> (no props) -> <Hello> (name prop).

@adi518
Copy link
Author

adi518 commented Aug 22, 2017

This is a vue-router issue. Sorry for the confusion it may cause.

@posva
Copy link
Member

posva commented Aug 22, 2017

Oh, right. Let's move this to vue-router, I'm doing it

@adi518 adi518 changed the title Props not passed to $attrs from Route props Props not passed to $attrs from route props Aug 23, 2017
@adi518 adi518 changed the title Props not passed to $attrs from route props Props not passed down to $attrs from route props Aug 23, 2017
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

3 participants