Skip to content

Commit

Permalink
fix(table): modify table width hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cycleccc committed Sep 6, 2024
1 parent 677f863 commit a3e4ee2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function renderTable(elemNode: SlateElement, children: VNode[] | null, editor: I
'div',
{
hook: {
insert: ({ elm }: VNode) => observerTableResize(editor, elm),
postpatch: ({ elm }: VNode) => observerTableResize(editor, elm),
destroy: () => {
unObserveTableResize()
},
Expand Down

0 comments on commit a3e4ee2

Please sign in to comment.