diff --git a/src/Components/Floating/Float.tsx b/src/Components/Floating/Float.tsx index 9723db9..6a6d10f 100644 --- a/src/Components/Floating/Float.tsx +++ b/src/Components/Floating/Float.tsx @@ -83,7 +83,7 @@ export const Float = React.forwardRef(({children, content, className, mode, dism const hover = useHover(context, useMemo(() => ({ enabled: mode == "hover" }), [mode])); const focus = useFocus(context, useMemo(() => ({ enabled: mode == "focus", visibleOnly: false }), [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, { role: role, enabled: !!role,