-
Hi, I'm having a table in v8 (alpha 48) where a user can toggle between normal and editing mode with a button. If using the Editing mode, an additional column (actions) is visible where rows can be deleted and other actions performed". This is hidden in the normal view. The hiding is done with the following part of the table instance configuration: state: {
columnVisibility: editing ? {} : { actions: false },
}, Now, whenever the "Editing" button is clicked, the table "flickers" once and the scrollbar is visible very shortly while the additional column is added / removed. Is there a way to avoid this? I'm not sure if I do this correctly, currently, the "useTableInstance" is receiving this "editing" state in its configuration. I have also tried using a useEffect hook that calls instance.toggleColumnVisibility() for this column depending on the "editing" variable, but the result is the same. I'm grateful for any pointers. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
CodeSandBox showing this issue would really really help diagnose it |
Beta Was this translation helpful? Give feedback.
-
Fixed by modifying the UI library component usage, see here: #3859 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Fixed by modifying the UI library component usage, see here: #3859 (reply in thread)