Skip to content

Commit

Permalink
* dtable: hide contextmenu on start hiding.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jul 6, 2024
1 parent 45253c2 commit 6beecdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dtable/src/plugins/sort-col/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ const sortColPlugin: DTableSorColPlugin = {
}
event.preventDefault();
const startMouseX = event.clientX;
this.data.sortColInfo = {from: col, element: info.cellElement, offset: startMouseX - info.cellElement.getBoundingClientRect().left, startMouseX, lastMouseX: startMouseX};
const {cellElement} = info;
this.data.sortColInfo = {from: col, element: cellElement, offset: startMouseX - cellElement.getBoundingClientRect().left, startMouseX, lastMouseX: startMouseX};
$(cellElement!).zuiCall('ContextMenu.hide');
},
document_mouseup(event) {
const {sortColInfo} = this.data;
Expand Down

0 comments on commit 6beecdf

Please sign in to comment.