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

vnode props can't be accessed from parent #1185

Closed
lzhoucs opened this issue May 15, 2020 · 1 comment
Closed

vnode props can't be accessed from parent #1185

lzhoucs opened this issue May 15, 2020 · 1 comment

Comments

@lzhoucs
Copy link

lzhoucs commented May 15, 2020

Version

3.0.0-beta.12

Reproduction link(either one of the following)

Steps to reproduce

  • Go to one of the reproduction links above(neither works as expected)
  • Click on one of the two tabs
  • Check console log

What is expected?

true/false is logged

What is actually happening?

undefined is logged


I need to access Tab's active prop inside Tabs, I found no way to do it. This ticket is similar to #1082. This ticket has issue getting child vnode props from parent whereas #1082 had issue setting it.

In both reproduction links, the console.log(vnode.props.active) shows undefined when either tab is clicked, even though vnode.props.active can be set properly from parent now that #1082 is fixed

@vue-bot
Copy link
Contributor

vue-bot commented May 15, 2020

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@vue-bot vue-bot closed this as completed May 15, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 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

2 participants