mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +00:00
fix: fix CONTEXTMENU auto hide
This commit is contained in:
parent
ee17120f2a
commit
77c5a7395e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user