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: mdb.Select.getOrCreateInstance is not a function

Fletcher Easton premium asked 2 years ago


Expected behavior When I call mdb.Select.getOrCreateInstance with a select element, I expect either the select element to be created and returned or just returned if already created.

Actual behavior When calling mdb.Select.getOrCreateInstance I get this error in the console: mdb.Select.getOrCreateInstance is not a function. And the select menu is neither created (if it was not already created) nor returned (if already created).


Mateusz Lazaru staff commented 2 years ago

Thank you for reporting this. We will fix this bug soon.


Mateusz Lazaru staff answered 2 years ago


Hi!

There must be an error in your code. I checked all possible ways of creating or getting instance of a Select, and there is no errors.

Please check my-snippet and let me know if problem still occures. Last example doesnt work and it's fine, because it wasn't ever initialized.



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: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: iMac
  • Browser: Chrome
  • OS: Mac
  • Provided sample code: Yes
  • Provided link: No