Skip to content

Commit

Permalink
fix: clear raf id when unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 25, 2020
1 parent d043459 commit 7d2d4cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export function generateTrigger(
this.clearDelayTimer();
this.clearOutsideHandler();
clearTimeout(this.mouseDownTimeout);
raf.cancel(this.attachId);
}

onMouseEnter = e => {
Expand Down

0 comments on commit 7d2d4cb

Please sign in to comment.