Cannot read property 'top' of undefined when using


Topic: Cannot read property 'top' of undefined when using modals
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)
Hi, please give me more details so I could reproduce your error. Regards,
Hi. That will be easy. You can use your own example at https://mdbootstrap.com/live/_MDB/templates/Landing-Page/spa-landing-page.html I'm using chrome. As you can see with the developer tools there is an error at the moment you click on contact. Thanks
Thank you for noticing this. We will fix this in the future. Regards,

snicholl pro answered 4 years ago

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

Jakub Strebeyko staff answered 4 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 commented 3 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

Please insert min. 20 characters.
Status

Answered

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
Tags