Topic: 4.17.0 sideNav not a function??

claudio1 pro asked 4 years ago


Expected behavior Something is wrong with this release. I'm trying to upgrade from 4.8.1 and I'm getting several errors.

  1. Uncaught TypeError: $(...).sideNav is not a function

  2. What happened to initPhotoSwipeFromDOM() ? I rely on this method to fix mdb-lightbox behavior.

  3. If I edit mdb.js on Visual Studio, I get several ESLInt errors, something seems to be wrong on this file

  4. Is it correct that the bundle does not contain the ../fonts folder anymore?

I am a PRO user, it's very frustrating not to have the PREVIOUS versions available to download in a case like this. Please advise.


Grzegorz Bujański staff commented 4 years ago

Hi. It's been a long time since version 4.8.1 and a lot of things have changed.

  1. Try add sidenav init inside document ready function.
  2. this function is still exist. Can you tell me more about this?
  3. This is bundle file. We have no influence on what the compilation result will be and whether it will be compatible with eslint rules.
  4. Jest. We delete fonts from packages in 4.12.0. Now you should use CDN links.

You can check all the changes we've made in ours changelog here: https://mdbootstrap.com/docs/jquery/changelog/


claudio1 pro commented 4 years ago

Hi, thanks for getting back.

  1. sideNav issue resolved (document.ready: thanks)
  2. initPhotoSwipeFromDOM() you said it still exists, but where is it? I couldn't find it on mdb.js file. It used to be defined as 'var initPhotoSwipeFromDOM = function (gallerySelector) {' on 4.8.1. Can you tell me where can I find it?
  3. Fonts CDN links: I checked the changelog, but couldn't find documentation on this. Where can I find the links I should reference?

Grzegorz Bujański staff commented 4 years ago

  1. mdb.js is compiled file. you can find initPhotoSwipeFromDOM inside lightbox.js file.
  2. You can find fonts CDN links in index.html file (inside MDB package)


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: 4.17.0
  • Device: PC
  • Browser: Chrome latest
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No