Problem/Motivation

When adding a block with a hidden exposed filter, that has (for example) a range of values (From, To) the filter is hidden but the legend is still rendered

Steps to reproduce

1. Add a view with an exposed filter that has values "between", for example a date range
2. Add another exposed filter, simple value
3. Add an exposed filter block, hide the range filter
4. View it

Markup

<fieldset id="edit-date-wrapper--4" class="js-form-item form-item js-form-wrapper form-wrapper">
  <legend>
    <span class="fieldset-legend">Search Date Range</span>
  </legend>
  <div class="fieldset-wrapper">
    <div class="hidden-exposed-filter">
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

aaron.ferris created an issue. See original summary.

aaron.ferris’s picture

Issue summary: View changes
aaron.ferris’s picture

Issue summary: View changes

cvalverp made their first commit to this issue’s fork.

fjgarlin made their first commit to this issue’s fork.

fjgarlin’s picture

Status: Active » Needs review
fjgarlin’s picture

fjgarlin’s picture

Version: 1.0.0-alpha1 » 1.0.x-dev

Please credit @miguelsvq as he helped with the solution.

manuel.adan made their first commit to this issue’s fork.

  • manuel.adan committed f1fad818 on 1.0.x authored by fjgarlin
    Issue #3381909 by fjgarlin, miguelsvq: Hidden filters with a fieldset...
manuel.adan’s picture

I have tested the solution and it is working fine, thank you all!

manuel.adan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.