Topic: search in a long mdb_select within a modal not working
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 7 years ago
$(".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 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No