Topic: search in a long mdb_select within a modal not working

vincpet pro asked 6 years ago


Hi, i have this problem: if a select is inside a modal and is long enough to show the scroll bar, then the search form is not clickable/focusable with mouse nor using jquery\'s .focus

This is the material select  html code, then i just call material_select() on it.

<select name="filter-lantern-game-name-filter-lanterns" id="filter-lantern-game-name-filter-lanterns" class="mdb-select colorful-select dropdown-primary initialized" multiple="" searchable="Search here..">
 <option value="" disabled="" selected="">Select Games</option>
 <option value="z">z</option>
 <option value="fa">fa</option>
 <option value="fda">fda</option>
 <option value="ttrer">ttrer</option>
 <option value="fff">fff</option>
 <option value="surf">surf</option>
 <option value="prova9">prova9</option>
 <option value="prova99">prova99</option>
 <option value="provac">provac</option>
 <option value="ciciarampa">ciciarampa</option>
 <option value="cicciarampa">cicciarampa</option>
 <option value="sfdszfsd">sfdszfsd</option>
 <option value="dfazds">dfazds</option>
 <option value="fsefe">fsefe</option>
 </select>


vincpet pro answered 6 years ago


If someone is interested I've found a workaround:
$(".mdb-select").find(".search").on("click", function (e) {
   e.preventDefault();
   $(this).focus();
});
If anyone has a better solution let me know.

Jakub Strebeyko staff answered 6 years ago


Hi there, Thanks for reaching out - your input is appreciated! We will have a closer look into the issue. Best, Kuba

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags