Tabulator: SetHeaderFilterValue rendering problem with autocomplete header filter

Created on 7 Jul 2020  路  1Comment  路  Source: olifolkerd/tabulator

Describe the bug
When setHeaderFilterValue() is called with a value on a column that has the "autocomplete" header filter, nothing is changed in the filter until it is clicked/focused.

It is basically the same issue described here, but for autocomplete header filter instead of select.

Tabulator Info
Tabulator version: 4.7.1

Working Example
https://jsfiddle.net/wz5u2kf1/6/

To Reproduce
In the jsfiddle, the 'Gender' header filter value should initially be set to 'Female', and it is but it is not shown
in the header until that header filter input is focused/clicked.

Expected behavior
The header filter's input should display the value sent in via setHeaderFilterValue without needing to select the input.

Bug

Most helpful comment

Hey @langebangen

Thanks for the info, and for pointing out the similar fix to the select editor that was very helpful.

I have pushed an update to the master branch and will include it in a patch release later today.

Cheers

Oli :)

>All comments

Hey @langebangen

Thanks for the info, and for pointing out the similar fix to the select editor that was very helpful.

I have pushed an update to the master branch and will include it in a patch release later today.

Cheers

Oli :)

Was this page helpful?
0 / 5 - 0 ratings