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 3d870c9 commit 76db217Copy full SHA for 76db217
1 file changed
src/index.tsx
@@ -422,11 +422,11 @@ export function generateTrigger(
422
}, delay);
423
};
424
425
- const onEsc: PortalProps['onEsc'] = ({ top }) => {
+ function onEsc({ top }: Parameters<PortalProps['onEsc']>[0]) {
426
if (top) {
427
triggerOpen(false);
428
}
429
- };
+ }
430
431
// ========================== Motion ============================
432
const [inMotion, setInMotion] = React.useState(false);
0 commit comments