Skip to content

Trigger 'click' with leveled slots causes "Duplicate presence of slot" #451

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
nerdcave opened this issue Mar 1, 2018 · 1 comment
Closed
Labels

Comments

@nerdcave
Copy link

nerdcave commented Mar 1, 2018

Version

1.0.0-beta.12

Reproduction link

https://gist.github.com/nerdcave/a76cbed0bb92bb93972f0232d9c8a1c0

Steps to reproduce

Run the test with Jasmine.

What is expected?

No warnings.

What is actually happening?

ERROR: '[Vue warn]: Duplicate presence of slot "content" found in the same render tree - this will likely cause render errors.


  • The warning will go away if you 1) remove the wrapper.find('div').trigger('click') -or- 2) remove slot-scope="props" off the template.
  • I don't have these issues in 1.0.0-beta.10.
@eddyerburgh
Copy link
Member

eddyerburgh commented Apr 1, 2018

Thanks for the bug report and the test case.

This issue has been fixed in beta.13.

I've added a test case to avoid future regressions

eddyerburgh added a commit to eddyerburgh/vue-test-utils that referenced this issue Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants