Topic: MDB 4.1.1 dropdown error with jQuery v.3

Ivan Ivanov pro asked 4 years ago


Hello. MDB 4.1.1 Run my site with jQuery 3.2.1, but has a problem with drop down. When click on dropdown hothing happend and has a error in console: mdb.min.js:1 Uncaught TypeError: a.size is not a functionat dropdownEffectData (mdb.min.js:1)at HTMLLIElement.show.bs.dropdown (mdb.min.js:4)at HTMLLIElement.dispatch ((index):39)at HTMLLIElement.q.handle ((index):39)at Object.trigger ((index):40)at HTMLLIElement.<anonymous> ((index):40)at Function.each ((index):38)at r.fn.init.each ((index):38)at r.fn.init.trigger ((index):40)at HTMLAnchorElement.value (bootstrap.min.js:1) Set jQuery to v. 2.2.3 - Dropdown runs ok. What to do?

Bartłomiej Malanowski staff commented 4 years ago

Could you please share your code with us?

Ivan Ivanov pro commented 4 years ago

It's your example code. Part with dropdown doesn't work with jQuery 3.2.1, but works with jQuery 2.2.3. MDB Magazine Home Page 2 Cart Contact Support Register Profile Logout My account

Ivan Ivanov pro commented 4 years ago

Can not paste code. MDB pro / templates / advanced / Magazine / home-page.html

Chad pro commented 4 years ago

I have the same issue. It doesn't appear to do anything and material select is working. This is only happening when I dynamically add to select > destroy > recreate a dropdown. The dropdowns are within a modal. If I do a destroy/recreate via console with the modal open. The error goes away. I have tried to add a timeout via the modal and destroy/recreate after it has shown. With no avail. It will only go away if I manually run it via console.

Mikołaj Smoleński staff commented 4 years ago

What is Your version of MDB? If it is not the latest 4.5.1 please try to update it. It can solve Your problems


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

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags