fix(etherpad) close menu when opening / closing document

Specially when we oopen it, mouse tracking will no longer work, so it
would remain open.
This commit is contained in:
Saúl Ibarra Corretgé 2022-07-12 09:25:50 +02:00 committed by Saúl Ibarra Corretgé
parent 4d51aedde0
commit 780019a711
1 changed files with 2 additions and 0 deletions

View File

@ -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<Props, *> {
}));
dispatch(toggleDocument());
dispatch(setOverflowMenuVisible(false));
}
/**