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 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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
Mateusz Lazaru staff commented 2 years ago
Thank you for reporting this. We will fix this bug soon.