From 780019a7117c0cd664de56c973c7bb015575d4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 12 Jul 2022 09:25:50 +0200 Subject: [PATCH] fix(etherpad) close menu when opening / closing document Specially when we oopen it, mouse tracking will no longer work, so it would remain open. --- react/features/etherpad/components/SharedDocumentButton.web.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react/features/etherpad/components/SharedDocumentButton.web.js b/react/features/etherpad/components/SharedDocumentButton.web.js index 222d9fdbb..a9c2e1a70 100644 --- a/react/features/etherpad/components/SharedDocumentButton.web.js +++ b/react/features/etherpad/components/SharedDocumentButton.web.js @@ -8,6 +8,7 @@ import { IconShareDoc } from '../../base/icons'; import { connect } from '../../base/redux'; import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components'; import { toggleDocument } from '../../etherpad/actions'; +import { setOverflowMenuVisible } from '../../toolbox/actions.web'; type Props = AbstractButtonProps & { @@ -67,6 +68,7 @@ class SharedDocumentButton extends AbstractButton { })); dispatch(toggleDocument()); + dispatch(setOverflowMenuVisible(false)); } /**