Skip to content

Commit

Permalink
fix: fix released table resize error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Jun 28, 2024
1 parent 13711e0 commit 9c6366d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vtable/src/event/listener/container-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export function bindContainerDomListener(eventManager: EventManager) {

if (!table.options.canvas) {
handler.on(table.getContainer(), 'resize', e => {
if (e.width === 0 && e.height === 0) {
if ((e.width === 0 && e.height === 0) || table.isReleased) {
// 临时绕行解决因为display设置为none产生的问题
return;
}
Expand Down

0 comments on commit 9c6366d

Please sign in to comment.