Topic: siblings is not a function - Update pro package download!

pablodgcatulo pro asked 7 years ago


Hey, i just bougth mdb admin template, and i'm getting an error on the login page.

" mdb.min.js:1 Uncaught TypeError: jQuery(...).siblings(...).on(...) is not a function
at mdb.min.js:1 "

The waird thing is that in your site demo ( https://mdbootstrap.com/previews/templates/admin-dashboard/html/pages/login.html ) this doesn't occur, but it does in the package I downloaded.

Can you please update the zip to match the online version and have this bug corrected?

 

thanks!



Pablo, I felt bad to see you disappointed by our admin dashboard templates pack. As I promised, I took a look at this issue and I fixed this issue. It found out that guilty was... our Material Select which had some issues. Anyway, the issue is fixed in 4.5.2 update and I proudly can mark this issue as resolved

pablodgcatulo pro commented 7 years ago

Thanks Bartłomiej. I moved on to another framework, but I will revisit mdbootstrap in some time to check the improvements! Thanks for your personal commitment to this issue! :)

Jakub Strebeyko staff answered 7 years ago


Hi there Pablo,

Thanks for reaching out with this. Our template packages get automatically updated, whenever our code-base moves forward. We weren't able to recreate the error message on our end, but me get this straight - did encompassing the .siblings() part in the document.ready block resolve the issue? The bug report has been submitted and passed down, along with the suggestion, to the development team and will be addressed in an appropriate release cycle.

With Best Regards,
Kuba


pablodgcatulo pro commented 7 years ago

Kuba! thanks for your response. For the first time in my life I've made a video with the steps to reproduce. https://youtu.be/0wHg6gkMlTk I would ask you for a refund (because the template is broken) but you don't agree with refunds.... well... just let me know when it's fixed

Bartłomiej Malanowski staff commented 7 years ago

Pablo, the problem is pretty weird. I'll do my best to fix it as soon as it possible

pablodgcatulo pro commented 7 years ago

Thanks Bartlomiej

pablodgcatulo pro answered 7 years ago


Jakub, any news?

Jakub Strebeyko staff answered 7 years ago


Hi there Pablo, Welcome to the Support Board! And thanks for reaching out with it. Where did you download the package from? The admin template login page from GitLab seems to render no such error on my end. Care to share some details about the version? Thanks. With Best Regards, Kuba

pablodgcatulo pro commented 7 years ago

Hi Jakub, thanks for your reply. I know, the online versión shows no errors and renders fine. Anyway I've downloaded it from profile -> my account -> orders and invoices. I'm using admin template for jquery and the files for mdb are marked as 4.5.1.

pablodgcatulo pro commented 7 years ago

The problem is that this line: jQuery('select').siblings('input.select-dropdown').on('mousedown', (e) => { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { if (e.clientX >= e.target.clientWidth || e.clientY >= e.target.clientHeight) { e.preventDefault() } } }) should be inside a document.ready block. Just a friendly advise on this topic :) I don't think it's a good idea to use arrow functions in the minified version since browser support is so recent, but this will not work on all browsers. ( https://caniuse.com/#feat=arrow-functions ) Thanks!


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

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