File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
plugins/table/src/component Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -881,9 +881,7 @@ class TableComponent<V extends TableValue = TableValue>
881
881
this . onChange ( ) ;
882
882
if ( this . enableScroll ) this . scrollbar ?. refresh ( ) ;
883
883
} ) ;
884
- this . command . on ( 'insertCol' , ( ) => {
885
- editor . trigger ( 'editor:resize' ) ;
886
- } ) ;
884
+
887
885
this . conltrollBar . on ( 'sizeChanging' , ( ) => {
888
886
if ( this . enableScroll ) this . scrollbar ?. refresh ( ) ;
889
887
editor . trigger ( 'editor:resize' ) ;
@@ -893,7 +891,7 @@ class TableComponent<V extends TableValue = TableValue>
893
891
if ( action === 'paste' ) {
894
892
editor . card . render ( this . wrapper ) ;
895
893
}
896
- if ( [ 'splitCell' , 'mergeCell' ] . includes ( action ) ) {
894
+ if ( [ 'splitCell' , 'mergeCell' , 'insertCol' ] . includes ( action ) ) {
897
895
editor . trigger ( 'editor:resize' ) ;
898
896
}
899
897
this . selection . render ( action ) ;
You can’t perform that action at this time.
0 commit comments