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(wrapper): fix wrapper.element for component with slot #1497

Merged
merged 1 commit into from May 20, 2022

Conversation

xanf
Copy link
Collaborator

@xanf xanf commented May 16, 2022

This PR fixes wrapper.element retrieval for components with slot :)

@netlify
Copy link

netlify bot commented May 16, 2022

Deploy Preview for vue-test-utils-docs ready!

Name Link
🔨 Latest commit ad506d8
🔍 Latest deploy log https://app.netlify.com/sites/vue-test-utils-docs/deploys/6282987f1cc2000008b49cec
😎 Deploy Preview https://deploy-preview-1497--vue-test-utils-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@xanf
Copy link
Collaborator Author

xanf commented May 16, 2022

@freakzlike this was broken in #1463

It seems like there was an extra conditional added which does not makes sense to me, but maybe I'm missing something

@freakzlike
Copy link
Collaborator

LGTM. The case where ShapeFlags.SLOTS_CHILDREN was set is already covered by the recursive call of checkTree. You can also merge the different IFs of ShapeFlags.STATEFUL_COMPONENT and ShapeFlags.FUNCTIONAL_COMPONENT into one as it is now the same code 👍

@xanf
Copy link
Collaborator Author

xanf commented May 16, 2022

@freakzlike

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.

None yet

3 participants