Open Reboot4X opened 6 years ago
yup, I met the same error with "tempusdominus-bootstrap-4": "5.0.0-alpha14"
and "tempusdominus-bootstrap-4": "5.0.1"
versions
I got the same problem but not trying to perform this test. In my case, when clicking on an element (a or button) the same error appeared. After racking my brains, I found out that the conflict was occurring because of a dataset that was data-id that existed in that link/button, so I changed it from data-id to data-user and the problem no longer occurred. Hope this helps someone.
Problem: "Uncaught TypeError: this.show is not a function" occurs in when user presses the down arrow after text field is clicked (receives focus)
Area of code:
Steps to recreate:
https://jsfiddle.net/Eonasdan/bdxss6m8/
Alternately, you can recreate this by navigating to the TempusDominus usage page.
https://tempusdominus.github.io/bootstrap-4/Usage/
Click on the text area that is to the left of the calendar button on the jsfiddle or the usage page's 1st example (Minimum Setup)
Press the down arrow key on the keyboard
Expected Result:
No error should occur when pressing the down arrow key, even if the calendar button has not been pressed.
Actual Result:
A script error occurs with the following stack trace:
There's also a script warning in Chrome when I access a page with the TempusDominus control:
Not sure if it is complaining about the initial states of the fields which are blank (before the user presses the calendar button)