Fix float dismiss in click mode.
This commit is contained in:
parent
f146dd9518
commit
c2485dfb1a
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export const Float = React.forwardRef(({children, content, className, mode, dism
|
||||||
const hover = useHover(context, useMemo(() => ({ enabled: mode == "hover" }), [mode]));
|
const hover = useHover(context, useMemo(() => ({ enabled: mode == "hover" }), [mode]));
|
||||||
const focus = useFocus(context, useMemo(() => ({ enabled: mode == "focus", visibleOnly: false }), [mode]));
|
const focus = useFocus(context, useMemo(() => ({ enabled: mode == "focus", visibleOnly: false }), [mode]));
|
||||||
const click = useClick(context, useMemo(() => ({ enabled: mode == "click" }), [mode]));
|
const click = useClick(context, useMemo(() => ({ enabled: mode == "click" }), [mode]));
|
||||||
const dismiss = useDismiss(context, useMemo(() => ({ enabled: !!dismissible }), [dismissible]));
|
const dismiss = useDismiss(context, useMemo(() => ({ enabled: !!dismissible && mode != "click" }), [dismissible]));
|
||||||
const roleProps = useRole(context, {
|
const roleProps = useRole(context, {
|
||||||
role: role,
|
role: role,
|
||||||
enabled: !!role,
|
enabled: !!role,
|
||||||
|
|
Loading…
Reference in a new issue