-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[SpeedDialAction] Convert to hook #16386
[SpeedDialAction] Convert to hook #16386
Conversation
@material-ui/lab: parsed: -1.60% 😍, gzip: -2.18% 😍 Details of bundle changes.Comparing: 3bbf941...a744d21
|
packages/material-ui-lab/src/SpeedDialAction/SpeedDialAction.test.js
Outdated
Show resolved
Hide resolved
packages/material-ui-lab/src/SpeedDialAction/SpeedDialAction.js
Outdated
Show resolved
Hide resolved
packages/material-ui-lab/src/SpeedDialAction/SpeedDialAction.js
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@joshwooding I can't seem to understand why the tests in |
This comment has been minimized.
This comment has been minimized.
@adeelibr I will have a quick look, see if I can help. @joshwooding is on holidays 🏖. |
8e624c1
to
00bb094
Compare
@adeelibr Ok, I have found the issue, it was the keydown event no correctly applied. The fix was: @@ -272,7 +272,7 @@ describe.only('<SpeedDial />', () => {
if (actionIndex === -1) {
return getDialButton();
}
- return wrapper.find(SpeedDialAction).at(actionIndex);
+ return wrapper.find(SpeedDialAction).at(actionIndex).find(Fab);
}; |
00bb094
to
3fc98eb
Compare
In general it's better to focus the element in question first and then apply a keydown to |
Thank you for the help, I was stuck on this for 2 days. How silly of me. 😄 |
@adeelibr Could you rebase this with the latest master? We made some changes to the build pipeline that aren't included here yet. Those are required to pass. |
3fc98eb
to
a744d21
Compare
I am sorry for the late response, I have done a rebase =) |
This commit had so much for me to learn 773ae51 Thank you @oliviertassinari 🎉 |
This commit was a bit off topic from the initial purpose of the pull request. The last time I have tried to remove keycode, I had the tests failing, and didn't want to spend the time looking at why. This time, we had an opportunity to batch the effort :). |
@adeelibr Thank you |
This PR is related to a small portion of #15231
Converted SpeedDialAction to a functional component.