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

Slot onClick handler calls previous slot's onClick #971

Closed
kidkuro opened this issue May 8, 2018 · 1 comment · Fixed by #972
Closed

Slot onClick handler calls previous slot's onClick #971

kidkuro opened this issue May 8, 2018 · 1 comment · Fixed by #972

Comments

@kidkuro
Copy link
Contributor

kidkuro commented May 8, 2018

There's a small coding bug in Slot.js where props is reassigned in a loop, so the onClick handler of all slots after the first end up delegating back to the first slot's onClick.

It's hard to produce a demo for this, it's more future proofing for custom slots. I'll create a PR with a unit test.

kidkuro pushed a commit to kidkuro/react-styleguidist that referenced this issue May 9, 2018
sapegin pushed a commit that referenced this issue May 15, 2018
@styleguidist-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 7.0.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants