-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Related Attributes
List Filter
Describe the bug
Creating a custom dropdown form select field with cms options causes the List Filter integration to stop working. When implemented, the dropdown will filter based on the selection, but when reset to the default state "Select one...", the entire list remains hidden until another option is selected.
Also, from what I could tell, this custom setup will cause all other filters to stop working.
To Reproduce
Steps to reproduce the behavior:
- Add a Custom Element, give it the tag of "label"
- Nest a Custom Element in "label", give it a tag of "span"
- Nest a Custom Element in "label", give it a tag of "select", add attribute of name = "select", add attribute of fs-list-field = "city"
- Nest a Custom Element in "select", give it a tag of "option" -- this is the default option "Select one..."
- Nest a Collection List in "select", don't add any attributes to the Collection List wrapper, list or item.
- Nest a Custom Element in the "Collection item", give it a tag of "option", give an attribute of value = "[collection name]", set text to [collection name]
- Link the custom dropdown select field by adding the attribute of fs-list-field = "city" to a text element that is pulling its value of [collection name] from the same collection list.
- Publish. Visit the live site.
- See error
Expected behavior
I expected this solution to not cause any conflicts between other filter solutions like the "Search" solution. I also expected the list to be reset once I set the dropdown value to its default which is "Select one...".
Screenshots
If applicable, add screenshots to help explain your problem.
Affected devices
If applicable, add information about the specific devices where this bug takes place.
All Devices
Links
https://hartman-septic.webflow.io/locations
Additional context