Forums Forums Search & Filter Pro Error with Dropdown field in search form UI

  • This topic has 11 replies, 3 voices, and was last updated 9 years ago by Ross.
Viewing 2 posts - 11 through 12 (of 12 total)
  • Ross Moderator
    #97134
    This reply has been marked as private.
    Ross Moderator
    #97375

    Hi Matthieu

    So I took a look. Trevor is right.

    Your theme appears to be “hijacking” all <select> in your site, changing the markup and DOM structure.

    For example our script will create a regular dropdown select:

    <select>
    <option>Option 1</option>
    <option>Option 2</option>
    </select>

    You theme then grabs this, and changes it to:

    <div class="pseudo-select">
    	<input type="text" value="" id="" name="_sft_options[]">
    	<span class="pseudo-select-field">Options</span>
    	<ul class="pseudo-select-dropdown">
    		<li class="pseudo-select-dropdown-item selected">Option 1</li>
    		<li class="pseudo-select-dropdown-item">Option 2</li>
    	</ul>
    </div>

    Take a look, there isn’t even a select in there, which means its going to be impossible to get the value of it!

    What you need to do is find a way to disable this, I would contact your theme author and ask if its possible to disable this.

    To be honest, I would assume there would be a way to do this – to change the markup of every single select on a site, with no way to disable will have untold repercussions, and I suspect plenty of compatibility problems with plugins etc (or even developers who want to add an actual select dropdown anywhere in their site).

    Hope that helps, let me know how you get on.

    Best

Viewing 2 posts - 11 through 12 (of 12 total)