Uncaught TypeError: Cannot read property '_selectDate' of undefined
See original GitHub issueI’m getting this error
“Uncaught TypeError: Cannot read property ‘_selectDate’ of undefined”
Located here
//########################################################################
// the bad hack :/ override datepicker so it doesnt close on select
// inspired: http://stackoverflow.com/questions/1252512/jquery-datepicker-prevent-closing-picker-when-clicking-a-date/1762378#1762378
//########################################################################
// ERROR LINE
$.datepicker._base_selectDate = $.datepicker._selectDate;
// END ERROR LINE
$.datepicker._selectDate = function (id, dateStr) {
This error appears to only happen in Google Chrome (v11.0.696.71)
Issue Analytics
- State:
- Created 12 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
JqueryUI Datepicker: Uncaught TypeError: Cannot read ...
Your issue is caused by duplicating your jQuery UI core scripts. ... doesn't follow the best practices - it relies on the id...
Read more >Uncaught TypeError: Cannot read property 'setDefaults' of ...
I'm getting an error message in javascript console saying, Uncaught TypeError: Cannot read property 'setDefaults' of undefinedI tried unchecking the ...
Read more >2464069 - DateTimePicker - Cannot read property '0' of null
sap.m.DateTimePicker Uncaught TypeError: Cannot read property '0' of null DateTimePicker does not open when clicking the dropdown arrow.
Read more >Uncaught TypeError: Cannot read property 'lastChild' of ...
When I set the display: "none" in css, it gives me the Uncaught TypeError: Cannot read property 'lastChild' of undefined.
Read more >Cannot read property 'addEventListener' of null - Salesforce ...
Uncaught TypeError : Cannot read property 'addEventListener' of null ... slds-form-element__label" for="myPicker">Select Date</label> <div ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s kinda funny, because I import the datepicker js package before the jquery UI, this issue occured. When I change their order, problem solved.
I was trying to keep the jQueryUI to a minimal and must have deleted something that I should not have deleted. I downloaded the jQueryUI again and kept it all and now it works. Thank you for your time!