-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[SpeedDial] Speed dial action binding enter event #12862
Comments
@basicfu Sorry, I can't understand what you're saying. Please use the issue template, and provide a reproducible example (edit the docs example in CodeSandbox) |
I'm sorry, my English is very poor |
@mbrookes
|
@mbrookes Can you help me? |
@mbrookes the problem is: when you click in some option (in this case, copyIcon), you can press enter that will trigger the action again, but when mouve leave and the options are close, you still can trigger the action. @basicfu workaround handleMsg = () => {
if (this.state.open) {
this.setState(state => ({
msg: state.msg + "close.."
}));
console.log("msg...");
}
}; |
@lucasgms16 Thank you very much, this will solve the problem,When my keyboard events in the parent layer when listening,I need to deal with the state in the parent layer |
@lucasgms16 Thanks! Do you want to work on a fix? |
@mbrookes sure! |
Did some quick testing and while it is trivial to put the focus back on the dial it is not viable to use this with our current demo setup because My preferred solution would be to have a good menu implementation that considers all a11y concerns and then use this in |
Makes sense in principal to share with menu. Controlled components are the preferred approach in Material-UI though. |
When I click on speedDialAction onClick event after,speedDialAction close after,Still triggered onClick event

repeat url: https://material-ui.com/lab/speed-dial/
The text was updated successfully, but these errors were encountered: