Topic: select field doesn't reset after upgrade to 7.3

Coenie Janse van Rensburg priority asked 2 weeks ago


After updating from 5 to 7.3 a lot of things is broken.

My problem here is form resets but the select field value is cleared out but when clicked on the select field the still shows selected.

how to fix on 7.3?

Please see link

https://mdbootstrap.com/snippets/standard/coenie_janse_van_rensburg/6134586


Kamila Pieńkowska staff answered 2 weeks ago


MDB follows the semantic versioning spec to keep the JavaScript ecosystem healthy and secure. In semantic versioning, a major version change (indicated by the change in the first digit in the version number) means there are substantial updates to an npm package that might require changes in your project.

To assist with this transition, we've prepared a comprehensive Migration Guide. This guide explains how you can adapt your project to MDB v7 seamlessly. Also, you can view all the specific updates in our Changelog, which details the changes in this version.

We moved away from using select class as a selector in version 7. This is not a bug.

Please go through the migration guide to understand the changes and how to implement them in your project. If you encounter any issues or need further assistance, feel free to reach out. We’re here to help ensure a smooth transition to MDB v7.


Coenie Janse van Rensburg priority commented 2 weeks ago

when i remove the class select, i don't get it right to reset the select value


Kamila Pieńkowska staff commented 2 weeks ago

Because you need to use data attribute to initiate it first and use ID as query selector in your custom JS code.


Coenie Janse van Rensburg priority commented 2 weeks ago

Yes i'm doing that, but have now new problem is the data resets perfect when data-mdb-filter="true" is not present in modal.

https://mdbootstrap.com/snippets/standard/coenie_janse_van_rensburg/6135808


Kamila Pieńkowska staff commented 2 weeks ago

You need to publish the snippet. I'm not able to see it now.


Coenie Janse van Rensburg priority commented 2 weeks ago

Ok i will make a new preset when at home later



Found the problem, the class="select" is not added to the select field

Please update your documentation as this is frustrating when you update your code but you not updating your documentation.

https://mdbootstrap.com/docs/standard/forms/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

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.3.0
  • Device: mac
  • Browser: crome
  • OS: sonoma
  • Provided sample code: No
  • Provided link: Yes