-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Related Attributes
Combination:
fs-list-filteron="submit"
fs-list-element="clear"
fs-list-field="IDENTIFIER"
Describe the bug
When using the fs-list-filteron="submit" attribute on the form with fs-list-element="filters":
The clear-buttons with fs-list-element="clear" + fs-list-field="IDENTIFIER", will not clear IDENTIFIER-specific filters.
Issue does not appear when using either fs-list-filteron="change" or default (fs-list-filteron="input")
To Reproduce
-
Create a Collection List to be filtered with fs-list-element="list"
-
Create a form with filters, attribute first div with fs-list-element="filters"
-
Attribute the filters with fs-list-field="category", fs-list-field="protein" (etc)
-
Inside every set of filter element, add a Clear link-block.
-
Attribute each Clear link-block with fs-list-element="clear" and matching fs-list-field="category" / fs-list-field="protein"
-
Test current setup, the Clear-buttons should now Clear filters with specific identifiers.
-
So far, so good.
-
Now, inside the form element with fs-list-element="filters", put fs-list-filteron="submit", as explained in the documentation:
-
Now, the submit button should indeed apply the filters and bypass the default immediate filtering (input)
-
Once that's settled, try to clear specific filters.
Expected Bug:
Clear-button clears all filters, no matter the identifier set to the Clear-button.
Expected Behaviour:
Clear-button should only clear filters set with matching fs-list-field="IDENTIFIER"
Screenshots
https://github.com/user-attachments/assets/ebe21b41-c79d-4c67-a670-44dc42a547b0