Uncaught TypeError: Cannot read property 'setAttribute' of undefined at s.animateHands (bootstrap-material-datetimepicker-mdb4.min.js:1) at s._onNowClick (bootstrap-material-datetimepicker-mdb4.min.js:1) at HTMLButtonElement.dispatch (jquery-3.3.1.min.js:2) at HTMLButtonElement.y.handle (jquery-3.3.1.min.js:2)
This happens if you press now while not on the clock view. I fixed by wrapping the animateHands functions in the _onNowClick with
Uncaught TypeError: Cannot read property 'setAttribute' of undefined at s.animateHands (bootstrap-material-datetimepicker-mdb4.min.js:1) at s._onNowClick (bootstrap-material-datetimepicker-mdb4.min.js:1) at HTMLButtonElement.dispatch (jquery-3.3.1.min.js:2) at HTMLButtonElement.y.handle (jquery-3.3.1.min.js:2)
This happens if you press now while not on the clock view. I fixed by wrapping the animateHands functions in the _onNowClick with
if(this.currentView === 1 || this.currentView === 2) { this.animateHands(); }