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.

Uncaught TypeError: Cannot read property '_selectDate' of undefined

See original GitHub issue

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

github_iconTop GitHub Comments

2reactions
KKKKeZZZZcommented, Feb 9, 2021

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.

0reactions
mortenportencommented, Dec 7, 2011

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!

Read more comments on GitHub >

github_iconTop 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 >

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