diff --git a/src/hooks.ts b/src/hooks.ts index 432e8d4..d39fbf1 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -73,7 +73,11 @@ export const initCoreState: CoreState = { _deferNextClose: false, } -const defaultPopupId = 'useId' in React ? () => React.useId() : () => undefined +const defaultPopupId = + 'useId' in React + ? () => React.useId() + : // istanbul ignore next + () => undefined export function usePopupState({ parentPopupState,