Topic: Timepicker - If you don't use minute selector you receive a Js error

softcon premium asked 2 years ago


Expected behavior

With developer window open, and in mobile mode - If user opens time picker, clicks "OK" immeditely, no Js error should occur.

Actual behavior

Uncaught TypeError: Cannot read properties of undefined (reading 'degrees')

This error continues to occur whenever any javascript is processed on the page.

Resources (screenshots, code snippets etc.)

https://ibb.co/Y8n7jkk


Dawid Wajszczuk staff commented 2 years ago

Can you provide a code that causes this errors? Because I'm unable to reproduce it, I see no errors following your steps.


softcon premium commented 2 years ago

Sorry for the delay. Example here:https://mdbootstrap.com/snippets/standard/softcon/3454107

Please follow the steps shown on the demo first. Additional to my original bug report, it happens when you open date picker and then click "ok" without selecting a time. Developer window must be open and on mobile mode (mobile icon must be selected).

Also sometimes, not always, if you open the time picker and select an hour, if you keep clicking, the widget can freeze and become unusable. There must be amoment in time where you can still select the hour even though the minute component is loading in, causing some JS error which stops everything else from completing.


Dawid Wajszczuk staff answered 2 years ago


Hi,

Thanks for reporting this and for explanation. I have added this to our TODO list.

Keep coding,
Dawid



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

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: all
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes