fix: fix CONTEXTMENU auto hide

This commit is contained in:
Rui-Sun 2024-10-14 19:34:22 +08:00
parent ee17120f2a
commit 77c5a7395e

View File

@ -779,7 +779,10 @@ export function bindTableGroupListener(eventManager: EventManager) {
// stage 的pointerdown监听
table.scenegraph.stage.addEventListener('pointerdown', (e: FederatedPointerEvent) => {
const eventArgsSet: SceneEvent = getCellEventArgsSet(e);
if ((eventArgsSet.eventArgs?.target as any) !== stateManager.residentHoverIcon?.icon) {
if (
!eventArgsSet.eventArgs?.target ||
(eventArgsSet.eventArgs?.target as any) !== stateManager.residentHoverIcon?.icon
) {
stateManager.hideMenu();
}
const isCompleteEdit = (table as ListTableAPI).editorManager?.completeEdit(e.nativeEvent);