Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I create an exposed filter with optional list of (single selection) values, in the view preview the 'All' value on top of the list is selected by default (good).
In my page view however, the first 'real' value is selected by default (wrong). If a user makes a selection of a real value, it is remembered when the user returns to the page.
If a user selects 'All', it lists all values correctly in the view but the setting is only remembered as long as the user stays on the page. If the user returns to the page, the first 'real' value is again selected, not 'All' which should be selected.
Comment | File | Size | Author |
---|---|---|---|
#7 | unselect-taxonomy-exposed-filter-views.gif | 6.6 KB | knalstaaf |
#4 | filter_ui.png | 16.04 KB | dawehner |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedIn your exposed filter configuration, is that first real value selected? Because when a filter is exposed, the value selected there is considered the default.
Comment #2
wouter99999 CreditAttribution: wouter99999 commentedThanks, I had all values selected... If I unselect them it works :)
The exposed filter configuration interface might need a change because it it confusing:
Now you select as operater 'is one of' and then next to it the options. So you would think that you have to check any option there that you want to include in 'is one of'. 'options' should be renamed to 'default options selected', and should allow only one if 'force single' is selected.
Comment #3
esmerel CreditAttribution: esmerel commentedComment #4
dawehnerIn the new ui we have this kind of "select all" checkbox, see attachment.
This seems to fix the UX problem with this.
Comment #5
dawehnerMark as fixed based on #4
Comment #7
knalstaaf CreditAttribution: knalstaaf commented#4 works for the content type filter, but there is an issue when taxonomy is being used.
If you don't select any of the taxonomy terms and hit "Apply" straight away - it's fine. But if your first choice is to select some of them, and you change your mind thinking "they should all be available" after all, you cannot undo this.
At least one option remains selected. I think this is default select-list behaviour, but in this case, it's rather painful. It means that you have to
This behaviour occurs in every browser.
Edit: Since this report isn't directly related to the original issue, I created a new issue: #1744224: Unable to deselect all options of taxonomy filter
Comment #8
knalstaaf CreditAttribution: knalstaaf commentedComment #9
Anonymous (not verified) CreditAttribution: Anonymous commented