question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
berrndcommented, Nov 10, 2022

so use of a fork may no longer be required.

Thanks, seems to work - done in 721a0ce417c95913a6e8cb44e30f15e71727b289.

Seems to cause other problems, see #2036 - we’ll stay with the own forked package.

1reaction
berrndcommented, Jul 19, 2022

so use of a fork may no longer be required.

Thanks, seems to work - done in 721a0ce417c95913a6e8cb44e30f15e71727b289.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery Datepicker close datepicker after selected date
When I click to datepicker it opens and I select any date. My question: If I choose date from datepicker, I want to...
Read more >
Opening the calendar popup from an element other ... - GitHub
Eg. there's a big button that say 'select your dates!' sitting next to the text input. I need the calendar to pop up...
Read more >
Problem with Selectors in Calendar in Outlook (to pick ...
The first thing I want to do is be able to select each day in the calendar but if you open a click...
Read more >
Date Picker Dialog Example | APG | WAI - W3C
Date Picker Dialog: OK and Cancel Buttons ; Activates the button: "Cancel": Closes the dialog, moves focus to "Choose Date" button, does not...
Read more >
Insert a date picker - Microsoft Support
Date pickers look like text boxes, except that a small calendar icon appears on the ... When a control is unbound, it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found