Topic: how to hide options in mdb-select

Feng free asked 4 years ago


Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.)

We have two form selections, we want dynamically hide and show options for the second selection based on the first selection! it works fine without mdb-select. once we added mdb-select (pro). the hide() doesn't work any more, but if you use destroy(), it works fine. we did call $('#code').materialSelect('destroy'); $('#code').materialSelect(); after hide the options wonder what I need do to make hide options works with mdb-select? Thanks,


Grzegorz Bujański staff commented 4 years ago

Hi. It is related to the specification of this component. At the moment it is not possible to solve it in another way.



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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.15.0
  • Device: PC
  • Browser: chome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No