bootstrapTable: data-height + data-filter-control +hidden on init => no header of table!

Author: DmVoytikovCreated May 19, 2025Updated May 13, 2026
Labelsfilter-controlBug

Bootstraptable version(s) affected

1.24.1

Description

  1. Add options data-height
  2. Add options data-filter-control (as example https://live.bootstrap-table.com/example/extensions/filter-control.html)
  3. Add hidden class on start (.hidden{display: none})
  4. Add button for show table (remove class hidden)
  5. Run page
  6. Click Button for show table

Bug result: no header of table: https://live.bootstrap-table.com/code/DmVoytikov/18810

If no data-height => header exists

Example(s)

https://live.bootstrap-table.com/code/DmVoytikov/18810

Possible Solutions

to execute ...bootstrapTable('refresh'); after show table;

Additional Context

No response

Source: wenzhixin/bootstrap-table