diff --git a/packages/vkui/src/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.ts b/packages/vkui/src/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.ts index 59d8fb3ed3..22e4780b42 100644 --- a/packages/vkui/src/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.ts +++ b/packages/vkui/src/lib/floating/useFloatingWithInteractions/useFloatingWithInteractions.ts @@ -122,6 +122,9 @@ export const useFloatingWithInteractions = const handleFocusOnReference = useStableCallback(() => { // Повторный вызов события фокуса - следствие клика на reference-элемент if (shownLocalState.shown) { + if (!closeAfterClick && shownLocalState.reason === 'hover') { + return; + } commitShownLocalState(false, 'focus'); return; }