Closed ShreeSoftech-Rupesh closed 2 months ago
@wenzhixin @UtechtDustin Any Update?
I also found one more issue: when clicking the refresh button in the second tab, it works.
https://github.com/wenzhixin/bootstrap-table/assets/92097236/10dcedf0-9423-4058-a147-acb4e338170c
The issue is that we calculate the width's to check if a fixed column is needed or if the browser width is larger then the table width.
In you're example we get 0 as width, as the element is not visible. That is also the reason why it works with the refresh button, it also works if you init the table after x seconds (using setTimeout
) and switch to the second tab within that time.
So the solution would be to initialize the table AFTER the table is visible (so after switching to the second tab).
Working test example: https://live.bootstrap-table.com/code/UtechtDustin/17861
I agree that the correct approach should be to initialize the table after each tab
is shown
to ensure its correctness.
Description
I encountered an issue with the Bootstrap Table library when using the data-fixed-columns="true" attribute.
Steps to Reproduce:
Example(s)
Here Is example
https://live.bootstrap-table.com/code/ShreeSoftech-Rupesh/17764