Skip to content

Commit

Permalink
fix(doc): 编辑场景 兼容事件名称改动导致的问题 (#1503)
Browse files Browse the repository at this point in the history
* fix(doc): 编辑场景 兼容事件名称改动导致的问题

* fix(doc): 编辑场景 兼容事件名称改动导致的问题
  • Loading branch information
YardWill authored Jun 28, 2022
1 parent 00a25fd commit 9574594
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions s2-site/examples/case/data-preview/demo/excel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ const App = ({ data }) => {
}
};
spreadsheet?.on(S2Event.GLOBAL_SCROLL, handleScroll);
spreadsheet?.on(S2Event.LAYOUT_CELL_SCROLL, handleScroll);
return () => {
spreadsheet?.off(S2Event.GLOBAL_SCROLL, handleScroll);
spreadsheet?.off(S2Event.LAYOUT_CELL_SCROLL, handleScroll);
};
}, []);

Expand Down

0 comments on commit 9574594

Please sign in to comment.