Skip to content

Commit

Permalink
[@mantine/core] Popover: fix floating-auto-update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Al-Maradney committed Feb 19, 2023
1 parent 364842f commit 13ab06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/Floating/use-floating-auto-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function useFloatingAutoUpdate({ opened, floating, positionDependencies }
}

return undefined;
}, [floating.refs.reference, floating.refs.floating, opened, delayedUpdate]);
}, [floating.refs.reference.current, floating.refs.floating.current, opened, delayedUpdate]);

useDidUpdate(() => {
floating.update();
Expand Down

0 comments on commit 13ab06e

Please sign in to comment.