We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<Switch>
event
Currently, <Switch> doesn't propagate event when toggling. That makes it "hard" for the consumer of this component to stop event propagation if they happen to have a nested interaction.
I think that in general, it's a good practice to push event up as the last argument so a consumer always has access to "click"/"touch"/"key*" events.
A fix is just 3 lines of code. I'll prepare a PR when I have a bit of time.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently,
<Switch>
doesn't propagateevent
when toggling. That makes it "hard" for the consumer of this component to stop event propagation if they happen to have a nested interaction.I think that in general, it's a good practice to push
event
up as the last argument so a consumer always has access to "click"/"touch"/"key*" events.A fix is just 3 lines of code. I'll prepare a PR when I have a bit of time.
The text was updated successfully, but these errors were encountered: