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: Can't select from Material Select

yddap17 pro asked 7 years ago


Hi there,

when I'm trying to add a Material Select, and copying the Example of from your documentation, I get the following error, while trying to select an option.


Uncaught TypeError: options.scrollTo is not a function
at activateOption (material-select.js:260)
at HTMLInputElement.focus (material-select.js:207)
at HTMLInputElement.dispatch (combined.js:3)
at HTMLInputElement.q.handle (combined.js:3)
activateOption @ material-select.js:260
focus @ material-select.js:207
dispatch @ combined.js:3
q.handle @ combined.js:3
---
Uncaught TypeError: Cannot read property 'jquery' of undefined
at new Popper (combined.js:6)
at a.g.toggle (combined.js:15)
at HTMLInputElement. (combined.js:15)
at HTMLInputElement.dispatch (combined.js:3)
at HTMLInputElement.q.handle (combined.js:3)

Initialiasing works.

I'm using jquery-3.2.1.min.js and the Bootstrap 4 Beta 2 files that are combined in the combined.js

 

What am I missing here?


Jakub Strebeyko staff commented 7 years ago

Hi there, As you can probably guess it ain't easy to say what's up without the actual code - a jsfidde / codepen example would suffice. Nevertheless, first I'd check the order in which the required files are attached - it should go like jQuery > Popper > Bootstrap > MDB.js > [your custom files]. Moreover, if I were to be guessing further, I'd point at some potential conflicts down the combined.js file, as it's just not shipped along with MDB. With Best Regards, Kuba


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: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags