Filter control clears if table data is refreshed when height is defined

Author: robertfshortCreated Apr 28, 2025Updated May 13, 2026
Labelsfilter-controlBug

Bootstraptable version(s) affected

1.24.1

Description

When using the filter control and a data height is set, if the refresh button is used, it clears the filter. In example, search for 'item 1' and then press the refresh button. The filter will empty after the refresh. If the data height is removed then on refresh the page retains the filter control entries

Example(s)

https://live.bootstrap-table.com/code/robertfshort/18793

Possible Solutions

No response

Additional Context

plausibly, could be related to the control filter losing focus when things are typed into it. IE, in my example, if you search for 'item' and then stop typing it moves the cursor back to the beginning of the word 'item'

Also plausibly related to #6978

Source: wenzhixin/bootstrap-table