fix(context-menu) Don't overwrite hidden prop (#11265)

Fixes issue where the menu would disappear on dominant speaker change
This commit is contained in:
Robert Pintilii 2022-03-30 14:50:41 +03:00 committed by GitHub
parent 1b1d976791
commit 270070716b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ const ContextMenu = ({
setIsHidden(false); setIsHidden(false);
} else { } else {
setIsHidden(true); hidden === undefined && setIsHidden(true);
} }
}, [ entity, offsetTarget, _overflowDrawer ]); }, [ entity, offsetTarget, _overflowDrawer ]);