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.

Ranged Date Picker Doesn't Work With undefined Values in TypeScript

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
the-dr-lazycommented, Apr 27, 2020

I noticed the version in CodeSandBox is 1.1.0 😂

OMG! sorry for wasting your time on this! I forked it from an old sandbox and didn’t noticed that!

1reaction
Kiarash-Zcommented, Apr 27, 2020

undefined value for JavaScript was working fine. Added the support for TypeScript in 3.1.3😊

Read more comments on GitHub >

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

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