We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa49226 commit 8346c23Copy full SHA for 8346c23
1 file changed
packages/docusaurus-theme-common/src/components/Collapsible/index.tsx
@@ -77,7 +77,9 @@ https://github.com/mui-org/material-ui/blob/e724d98eba018e55e1a684236a2037e24bcf
77
*/
78
function getAutoHeightDuration(height: number) {
79
if (userPrefersReducedMotion()) {
80
- return 0;
+ // Not using 0 because it prevents onTransitionEnd to fire and bubble up :/
81
+ // See https://github.com/facebook/docusaurus/pull/8906
82
+ return 1;
83
}
84
const constant = height / 36;
85
return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
0 commit comments