[SpeedDialAction] Convert to hook#16386
Conversation
|
@material-ui/lab: parsed: -1.60% 😍, gzip: -2.18% 😍 Details of bundle changes.Comparing: 3bbf941...a744d21
|
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.