Skip to content

Commit

Permalink
Merge pull request #225 from VisActor/66-refactor-icon-disapper-when-…
Browse files Browse the repository at this point in the history
…mouse-leave-table

refactor: icon should disapper when mouse leave table
  • Loading branch information
fangsmile committed Aug 18, 2023
2 parents 28af9d9 + 9ef41c9 commit d16a08c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vtable/src/components/tooltip/TooltipHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ export class TooltipHandler {
this._unbindFromCell();
}
});
table.on(TABLE_EVENT_TYPE.MOUSELEAVE_TABLE, e => {
this._unbindFromCell();
});
table.on(TABLE_EVENT_TYPE.SCROLL, e => {
const info = this._attachInfo;
if (info?.tooltipOptions && info?.range?.start) {
Expand Down
3 changes: 3 additions & 0 deletions packages/vtable/src/event/drill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export function bindDrillEvent(table: BaseTableAPI) {
table.stateManeger.updateDrillState(undefined, undefined, false, false, -1, -1);
}
});
table.on(TABLE_EVENT_TYPE.MOUSELEAVE_TABLE, (e: MousePointerCellEvent) => {
table.stateManeger.updateDrillState(undefined, undefined, false, false, -1, -1);
});
}

export function drillClick(table: BaseTableAPI) {
Expand Down

0 comments on commit d16a08c

Please sign in to comment.