Browse Source

ensure to re-render HotTable in afterColumnResizeHandler

Yuki Takei 7 years ago
parent
commit
c01c77f2fa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/client/js/components/PageEditor/HandsontableModal.jsx

+ 3 - 0
src/client/js/components/PageEditor/HandsontableModal.jsx

@@ -176,6 +176,9 @@ export default class HandsontableModal extends React.PureComponent {
 
 
     // store column index
     // store column index
     this.manuallyResizedColumnIndicesSet.add(currentColumn);
     this.manuallyResizedColumnIndicesSet.add(currentColumn);
+    // force re-render
+    const hotInstance = this.refs.hotTable.hotInstance;
+    hotInstance.render();
   }
   }
 
 
   modifyColWidthHandler(width, column) {
   modifyColWidthHandler(width, column) {