[extension-filter-control] triggerSearch does nothing when searchOnEnterKey is true

Author: joshuajeschekCreated Nov 9, 2023Updated May 13, 2026
Labelsfilter-controlBug

Bootstraptable version(s) affected

1.22.1

Description

When using search-on-enter-key="true", the triggerSearch method no longer works.

The reason for this is also quite clear in my opinion - the function definition of triggerSearch triggers the keyup event on the inputs, which does not lead to a search when searchOnEnterKey is enabled.

Example(s)

https://live.bootstrap-table.com/code/joshuajeschek/16466

Possible Solutions

a) trigger the enter key event when dataSearchOnEnterKey is set to true b) find a way to trigger the search without having to simulate interaction events

Additional Context

No response

Source: wenzhixin/bootstrap-table