Topic: Destroying Material Select will hide Searchable select (maybe also others)

Danny priority asked 5 years ago


Expected behavior: Show normal select, not hide the select / show material select

Actual behavior: Hiding the select, shows nothing

Resources (screenshots, code snippets etc.)

<select class="mdb-select md-form" searchable="Search here..">
  <option value="" disabled selected>Choose your country</option>
  <option value="1">USA</option>
  <option value="2">Germany</option>
  <option value="3">France</option>
  <option value="3">Poland</option>
  <option value="3">Japan</option>
</select>

$(document).ready(function() {
  $('.mdb-select').materialSelect({destroy:true});
});

Piotr Glejzer staff commented 5 years ago

It's not a bug. It's intentional behavior. Material Select with method destroy will destroy this material select.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.8.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No