JS error when input has attribute value #646

lSeldonl opened this Issue Feb 2, 2012 · 2 comments


None yet

2 participants

lSeldonl commented Feb 2, 2012

When i set value to input field like this

I have js error "Uncaught TypeError: Cannot read property 'type' of undefined"

line 286 has error

function select(date, conf, e) {

        // current value
        value    = date;
        currYear  = date.getFullYear();
        currMonth = date.getMonth();
        currDay  = date.getDate();              

        // focus the input after selection (doesn't work in IE)
        if (e.type == "click" && !$.browser.msie) {

We don't check "e" but below in code we call select without "e", thats why we try to get property type of undefined value e

// initial value
if (parseDate(input.val())) {
select(value, conf);



Can you please set this up as a demo, preferrably in JSFiddle, so we can see this in action?


Closing this due to lack of activity - please reopen and post a JSFiddle which shows the issue, if this is still a problem...

@alibby251 alibby251 closed this Feb 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment