Ranged Date Picker Doesn't Work With undefined Values in TypeScript
See original GitHub issueDescribe the bug
As revealed by #146. Ranged date picker brakes in runtime during selection of from date when the value is { from: undefined, to: undefined }
.
Reproduced Version on CodeSandbox Here it is on CodeSandBox
Expected behavior It should work like a charm as always did. 💪🏻
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Material-UI DateRangePicker TypeScript Error Can't use (Date
So I created the function to fix these values. const convertMissDatedToUTC = ( origDate: string | Date | null ): Date | null...
Read more >Form Datepicker | Components - BootstrapVue
BootstrapVue custom date picker input form control, which provides full WAI-ARIA ... an empty string '' , or returns null if the value-as-date...
Read more >Datepicker documentation for Javascript | Mobiscroll
Name Type Default value
anchor HTMLElement undefined
animation String, Boolean undefined
buttons Array
Read more >ion-datetime
Datetimes present a picker interface to select dates and times. Ionic's API Datetime input component easily displays a preferred format, and manages values....
Read more >Date Range Picker — JavaScript Date & Time Picker Library
To get started, include jQuery, Moment.js and Date Range Picker's files in ... to do this with ng-option using the (key, value) but...
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 FreeTop 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
Top GitHub Comments
OMG! sorry for wasting your time on this! I forked it from an old sandbox and didn’t noticed that!
undefined value for JavaScript was working fine. Added the support for TypeScript in 3.1.3😊