Topic: Select n search input doesn't work

AlexEneni pro asked 5 years ago


Hi!

I upgraded MDB version in my application and I have a problem with select and search input.

when I open a list and click on search box, the list closes. If I hold down the left mouse button everything is ok.

HTML:

<select name="form_input_select_name" class="mdb-select colorful-select dropdown-primary initialized" searchable="Search here..">
    <option value="" disabled="" selected="">Choose Category</option>
    <option value="1">Value1</option>
    <option value="2">Value2</option>
</select>

JS:

$(()=>{
    $('.mdb-select').material_select('destroy');
    $('.mdb-select').material_select();
});

What can i do with this?

Regards


Edit

I tried replace this:

 !$(e.target).closest("#select-options-".concat(this.uuid)).length

with this:

 !$(e.target).closest("#select-options-".concat(this.uuid)).length &&
 !$(e.target).hasClass('mdb-select') &&
 $("#select-options-".concat(this.uuid)

And nothing is change.


Edit2

The same problem i ve in ur documentation


Piotr Glejzer staff commented 5 years ago

Yes, we knew that. We already fix this. Check our docs now. Have a nice day.


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.7.5
  • Device: PC
  • Browser: Chrome
  • OS: win10
  • Provided sample code: No
  • Provided link: No
Tags