tui.grid
tui.grid copied to clipboard
Table is broken when 'display: none'
Describe the bug
If display: none is processed and released, the layout of the table is broken.
To Reproduce Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/toast-grid-test-forked-dbbkt6?file=/src/App.js
- Click on 'Toggle' Button
- See error
Expected behavior
Desktop (please complete the following information):
- OS: macOS
- Browser Chrome
- Version 110
Using content-visibility hidden works fine, but is this for the best?
I also have same issue with initializing the grid on an element, which is not display (display: none;).
Note
I need to use bootstrap tab, and basically one tab is on, but the other is off(display:none;)
So I initialize the grid first, and then hide the element like below.
const grid = new tui.Grid({
...
});
// hide element using jQuery
$('#tab2').hide();