Skip to content

Commit 808a215

Browse files
committed
add machine to dependencies list
This should be stable, but let's add it for consistency
1 parent affed02 commit 808a215

File tree

1 file changed

+1
-1
lines changed
  • packages/@headlessui-react/src/components/popover

1 file changed

+1
-1
lines changed

packages/@headlessui-react/src/components/popover/popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ function PanelFn<TTag extends ElementType = typeof DEFAULT_PANEL_TAG>(
801801
if (popoverState === PopoverStates.Closed && (props.unmount ?? true)) {
802802
machine.actions.setPanel(null)
803803
}
804-
}, [popoverState, props.unmount, props.static])
804+
}, [popoverState, props.unmount, props.static, machine])
805805

806806
// Move focus within panel
807807
useEffect(() => {

0 commit comments

Comments
 (0)