Time picker error in console


Topic: Time picker error in console

Flebe333 asked 7 years ago

Hi. I have this issue with the time picker. Every time i open it i get the following error. Uncaught TypeError: node.className.split is not a function at WOW.doSync (wow.js:346) at WOW.<anonymous> (wow.js:335) at Array.forEach (<anonymous>) at WOW._mutations (wow.js:332) This error also shows when i try and pick a time This is also showing on your site in chrome https://mdbootstrap.com/javascript/time-picker/ Uncaught TypeError: e.className.split is not a function at WOW.doSync (compiled.min.js?ver=4.4.0:12) at WOW.<anonymous> (compiled.min.js?ver=4.4.0:11) at Array.forEach (<anonymous>) at WOW._mutations (compiled.min.js?ver=4.4.0:11)

Bartłomiej Malanowski staff pro premium commented 7 years ago

Thank you for noticing. This bug will be fixed in the next release of MDB

Flebe333 commented 7 years ago

When will this be released? Since we already upgraded and we can not have this bug on our side. If it will be a while before release can you maybe give us a fix so we can implement it on our side until the next release

pjmarshall1 pro answered 7 years ago

seeing this error in 4.4.3 Jquery. [Error] TypeError: node.className.split is not a function. (In 'node.className.split(' ')', 'node.className.split' is undefined) doSync (mdb.js:13401) (anonymous function) (mdb.js:13390) (anonymous function) forEach _mutations (mdb.js:13387) (anonymous function)

Jakub Strebeyko staff commented 7 years ago

Hi pjmarshall1, Could you provide us code to work on and figure out? Thanks. With Best Regards, Kuba

pjmarshall1 pro commented 7 years ago

<input name="start_time" placeholder="Select a time" value="" type="text" class="form-control timepicker m-0 p-0 w-50" [twelvehour]="true" [darktheme]="false" style="height: 48px;"> $('.timepicker').pickatime(); This is also happening on the Time Picker page on your site as well. I'm having an issue with the Time Picker in a modal where it does pop up but when I select a time it doesn't populate the field. Also selecting either am or pm closes out the Time Picker.

Jakub Strebeyko staff commented 7 years ago

Hi there pjmarshall1, Thanks for noticing the error - our team is on it. When it comes to a simple fix, I must admit wasn't able to recreate described behavior once I copied the time picker code onto modal's body. Would it be possible for you to submit a (not-) working example on JSFiddle or CodePen, or perhaps share the code here, the one certain to have this problematic feature? With Best Regards, Kuba

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No