-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
When having a table with mass actions and checkboxes to select items.
On filling the filter we'll have a unexpected behaviour :
- Click on the filter field
- type something
- The result of the filter is displayed (refreshOnKeyup > askForReload)
- I check one row
- The table is reloaded a 2nd time : (refreshOnChange > askForReload)
- I loose my selection
A gullible solution would be to remove refreshOnChange for classic filters
{# @KilikTable/_columnFilter.html.twig #}
{% set column_filter_class = 'form-control refreshOnKeyup refreshOnChange' %}
{% if table.massActions and column.filter.options.choices is not defined %}
{% set column_filter_class = 'form-control refreshOnKeyup' %}
{% endif %}We miss CheckboxType and some other possibilies.
Perhaps an attribute to enable/disable refreshOnChange on \Kilik\TableBundle\Components\Filter would be preferable.
Metadata
Metadata
Assignees
Labels
No labels