Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
useCloseOnOutsideClick({
enabled: visible,
element: inputRef.current,
onOutsideClick: hide,
});
const {
style,
onEnter,
onEntering,
onEntered,
onExited,
updateStyle,
} = useFixedPositioning({
fixedTo: () => inputRef.current,
anchor,
onScroll(_event, { visible }) {
if (!disableHideOnScroll || !visible) {
hide();
}
},
onResize: disableHideOnResize ? undefined : hide,
width: listboxWidth,
xMargin,
yMargin,
vwMargin,
vhMargin,
transformOrigin,
preventOverlap,
disableSwapping,