GithubHelp home page GithubHelp logo

Comments (5)

tintoverano avatar tintoverano commented on May 30, 2024

hi,

I have the same issue, and a bit more related to type 'select2', I discovered them together

demo repo is here: https://github.com/tintoverano/dateTimePickerIssue

first I get the same error @mattkrick

Exception from Tracker afterFlush function: Cannot read property 'getDate' of undefined
TypeError: Cannot read property 'getDate' of undefined
    at AutoForm.addInputType.valueOut (http://localhost:3000/packages/aldeed_autoform-bs-datetimepicker.js?279246d1cf7d4b5603ac030d7466e9bc6e5ac0d1:86:40)
    at Object.autoFormGetInputValue [as getInputValue] (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:2311:28)
    at HTMLInputElement.formValuesEach (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:1694:35)
    at Function.jQuery.extend.each (http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:417:23)
    at jQuery.fn.jQuery.each (http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:170:17)
    at getFieldsValues (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:1693:10)
    at getFormValues (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:1791:13)
    at _validateField (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:1621:18)
    at http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:758:23
    at Object.autoFormChangeHandler (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:6788:7)

after removing the second dateTimePicker type from hello.js one I get this in the console:

Exception from Tracker afterFlush function: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at Function._.without (http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:536:38)
    at http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:285:24
    at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:164:22)
    at compactArrays (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:283:9)
    at http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:291:11
    at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:159:22)
    at compactArrays (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:283:9)
    at http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:291:11
    at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:164:22)
    at compactArrays (http://localhost:3000/packages/aldeed_autoform.js?b2b90d28d5cc29be68358bb3c8bb8a337992a7dd:283:9)

it might be related to type "select2" used in hello.js as well, because removing it solves the stack size problem and only the first error remains related to getDate()

... and then removing the second dateTimePicker type eliminates all errors in the console, this is the case for @mattkrick

thanks,

tinto

from meteor-autoform-bs-datetimepicker.

elie222 avatar elie222 commented on May 30, 2024

Strange. I have two 2 date time inputs in one form and I don't have any errors. This is what the relevant schema code looks like:

startDate: {
type: Date,
autoform: {
afFieldInput: {
type: "bootstrap-datetimepicker"
}
}
},
endDate: {
type: Date,
autoform: {
afFieldInput: {
type: "bootstrap-datetimepicker"
}
}
},

from meteor-autoform-bs-datetimepicker.

trance4mation avatar trance4mation commented on May 30, 2024

Same here (schema is identical to @elie222 ), but less verbose console log:

Exception from Tracker afterFlush function:                  debug.js:41
TypeError: Cannot read property 'getDate' of undefined       debug.js:41
Exception from Tracker afterFlush function:                  debug.js:41
TypeError: Cannot read property 'getDate' of undefined       debug.js:41

from meteor-autoform-bs-datetimepicker.

delatorremario avatar delatorremario commented on May 30, 2024

same problem!

from meteor-autoform-bs-datetimepicker.

lukialee avatar lukialee commented on May 30, 2024

+1

from meteor-autoform-bs-datetimepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.