Topic: material-select.js not destroying properly before re-rendering

Legay free asked 5 years ago


Expected behavior

MaterialSelect class constructor expects the options parameter to be an object. Destroying it should be done by calling materialSelect({destroy: true})

Actual behavior

Inside material-select.js, there are multiple calls to materialSelect('destroy'), which doesn't actually dispose the component. It should be materialSelect({destroy: true});

Resources (screenshots, code snippets etc.)

See material-select.js, lines 365 and 836.


Piotr Glejzer staff commented 5 years ago

Thanks, we will fix this as soon as possible.



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.7.7
  • Device: laptop
  • Browser: Chrome
  • OS: Win 10
  • Provided sample code: No
  • Provided link: No