Calendar button stops working if selector is closed without selecting date
See original GitHub issue~Haven’t yet discovered how to reliably reproduce this yet. Happens when I’m adjusting inventory in the Inventory dialog - I think after having already submitted at least one change.~
On a fresh load of the Purchase or Inventory pages, click on the Calendar button for Best before, then after the selector appears, click the button again without selecting a date. Selector closes. Clicking the calendar button again gives no response.
The following errors are output to the console when clicking to close the calendar selector:
tempusdominus-bootstrap-4.min.js?v=1.24.1:7 Uncaught TypeError: Cannot read property 'clone' of undefined
at k.hide (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at Function.k._jQueryHandleThis (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at w.fn.init.k._jQueryInterface [as datetimepicker] (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at HTMLInputElement.<anonymous> (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at HTMLDocument.dispatch (jquery.min.js?v=1.24.1:2)
at HTMLDocument.y.handle (jquery.min.js?v=1.24.1:2)
at Object.trigger (jquery.min.js?v=1.24.1:2)
at Object.simulate (jquery.min.js?v=1.24.1:2)
at HTMLDocument.n (jquery.min.js?v=1.24.1:2)
tempusdominus-bootstrap-4.min.js?v=1.24.1:7 Uncaught TypeError: Cannot read property 'isSame' of undefined
at k._updateMonths (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at k._fillDate (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at k.r._update (tempusdominus-bootstrap-4.min.js?v=1.24.1:6)
at k.show (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at k.r.toggle (tempusdominus-bootstrap-4.min.js?v=1.24.1:6)
at Function.k._jQueryHandleThis (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at w.fn.init.k._jQueryInterface [as datetimepicker] (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at HTMLDivElement.<anonymous> (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at HTMLDocument.dispatch (jquery.min.js?v=1.24.1:2)
at HTMLDocument.y.handle (jquery.min.js?v=1.24.1:2)
Subsequent clicks of the calendar button output the following error:
tempusdominus-bootstrap-4.min.js?v=1.24.1:7 Uncaught TypeError: Cannot read property 'clone' of undefined
at k.hide (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at k.r.toggle (tempusdominus-bootstrap-4.min.js?v=1.24.1:6)
at Function.k._jQueryHandleThis (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at w.fn.init.k._jQueryInterface [as datetimepicker] (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at HTMLDivElement.<anonymous> (tempusdominus-bootstrap-4.min.js?v=1.24.1:7)
at HTMLDocument.dispatch (jquery.min.js?v=1.24.1:2)
at HTMLDocument.y.handle (jquery.min.js?v=1.24.1:2)
Workaround is to reload the page.
I also note that the Best before information field (eg “4 months from now”) does not get cleared when the form is submitted.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
Seems to cause other problems, see #2036 - we’ll stay with the own forked package.
Thanks, seems to work - done in 721a0ce417c95913a6e8cb44e30f15e71727b289.