Comments (5)
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.
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.
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.
same problem!
from meteor-autoform-bs-datetimepicker.
+1
from meteor-autoform-bs-datetimepicker.
Related Issues (20)
- Using reactive variable to set date on timepicker, but date doesn't show. HOT 1
- Type:Number is not working HOT 2
- interval settings on timepicker don't work with v. 3.1.3_3 of tsega:bootstrap3-datetimepicker HOT 1
- When bootstrap navbar present, date picker appears above and off the screen. HOT 1
- Incompatibility with tsega:bootstrap3-datetimepicker@4 and above HOT 7
- Value will be reset after validation problem HOT 2
- Show debug on browser console "dtp.setDate is not a function"? HOT 4
- upgrade bootstrap to later version in the package 4.17.37 HOT 5
- Reset issue while adding new datetime field in a form. HOT 1
- customizing HOT 2
- gooseman implementation throws an Error: datetimepicker component should be placed within a relative positioned container HOT 1
- datepicker set date dynamic value HOT 1
- getDate() in undefined HOT 3
- currentDate not sets the correct date, but alway 12:00 am HOT 1
- UTC Time HOT 1
- timezoneId doesn't work HOT 1
- Wrong moment-timezone package HOT 1
- Could update to last of datetimepicker? HOT 1
- LT format not supported HOT 3
- Update moment packages to use NPM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-autoform-bs-datetimepicker.