Topic: Cannot read property 'top' of undefined when using modals

Fabio Andrés García Sánchez pro asked 5 years ago

Hi, I bought Landing Pages Packages Templates. I've been using them but I got and error when trying to open a modal, it says: mdb.min.js:2 Uncaught TypeError: Cannot read property 'top' of undefined at HTMLAnchorElement.<anonymous> (mdb.min.js:2) at HTMLUListElement.dispatch (jquery-3.1.1.min.js:3) at HTMLUListElement.q.handle (jquery-3.1.1.min.js:3)

Jakub Strebeyko staff answered 5 years ago

Hi there everybody, The issue will be addressed in our 4.4.6 update release, which is scheduled for mid-February. With Best Regards, Kuba

EmzzDroid Lollipop free commented 4 years ago

Edit: MDBootstrap 4.5.1, how ever it occurs in .smooth-scroll class when having <a> more than 7 Issue is still here Viewed in Chrome Console: Uncaught TypeError: Cannot read property 'top' of undefined at HTMLAnchorElement. (mdb.min.js:1) at HTMLUListElement.dispatch (jquery-3.2.1.min.js:3) at HTMLUListElement.q.handle (jquery-3.2.1.min.js:3) Firefox: TypeError: $(...).offset(...) is undefined - mdb.min.js:1:213622 - /mdb.min.js:1:213622 dispatch - jquery-3.2.1.min.js:3:10264 add/q.handle - jquery-3.2.1.min.js:3:8326

snicholl pro answered 5 years ago

I am still getting the above described error. Has there been an update to fix this?

Edyta Dabrowska free answered 5 years ago

Thank you for noticing this. We will fix this in the future. Regards,

Hi. That will be easy. You can use your own example at I'm using chrome. As you can see with the developer tools there is an error at the moment you click on contact. Thanks

Edyta Dabrowska free answered 5 years ago

Hi, please give me more details so I could reproduce your error. Regards,

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No