I have a list of people that can be filtered depending on the location, skill, name, etc.
The desktop version it's a div with the options and a search button, like this:
<div class="form-group col-xs-12 col-md-12" style="position: absolute; display: contents;">
<div class="search-input ">
<input type="text" name="s" id="s" class="input-text full-width" placeholder="<?php _e( 'Search by name', 'trav') ?>" value="<?php echo esc_attr( $s ); ?>" />
</div>
<div class="col-xs-6">
<button class="btn-medium icon-check full-width search-again"><?php _e( 'Search', 'trav' ) ?></button>
</div>
</div>
(only pasted 1 filter here for the example)
Then the mobile version it's a copy of the desktop version, but inside a bootstrap collapse. I hide desktop filters in mobile and hide the mobile filters in desktop with the hidden
classes from bootstrap.
It works well in desktop, but when the mobile versions appears, the filters don't apply, that is, it shows the full list of results instead of a filtered list like in desktop.
Could it be having the elements duplicated?