Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Updating/destroying Material Select doesn´t work

Christian Leon free asked 4 years ago


Expected behavior Updating Material Select

Actual behavior When it is destroyed and initialized again, 2 wrappers are generated one inside the other, which causes a malfunction.

Resources (screenshots, code snippets etc.)enter image description here

$(document).ready(function(){

  $('#cancel_search').click(function(){
    $('.filter-form select.mdb-select').materialSelect({
      destroy: true
    });
    $('.filter-form select.mdb-select').materialSelect();
  })

Any suggestions about this?


Tomek Makowski staff commented 4 years ago

Download the newest version of package 4.19.1. This bug has been repaired in this patch.

More info here: https://mdbootstrap.com/docs/jquery/changelog/#v4-19-1

Regards


Christian Leon free commented 4 years ago

Thank you Tomek!!!



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: Computer
  • Browser: Google Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No