diff --git a/packages/material-ui/src/utils/focusVisible.js b/packages/material-ui/src/utils/focusVisible.js index ae908177ab800d..a4344db7f2a7d3 100644 --- a/packages/material-ui/src/utils/focusVisible.js +++ b/packages/material-ui/src/utils/focusVisible.js @@ -139,5 +139,10 @@ export function useIsFocusVisible() { } }, []); + if (process.env.NODE_ENV !== 'production') { + // eslint-disable-next-line react-hooks/rules-of-hooks + React.useDebugValue(isFocusVisible); + } + return { isFocusVisible, onBlurVisible: handleBlurVisible, ref }; }