Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't reset maxDate & minDate #2549

Closed
Siriwatb opened this issue Apr 24, 2022 · 1 comment
Closed

I can't reset maxDate & minDate #2549

Siriwatb opened this issue Apr 24, 2022 · 1 comment

Comments

@Siriwatb
Copy link

datePickerObject.updateOptions({ restrictions: { maxDate: undefined } });

throws the following error:

Uncaught TypeError: Cannot convert undefined or null to object
at Function.keys ()
at spread (tempus-dominus.js:1550:51)
at tempus-dominus.js:1584:25
at Array.forEach ()
at spread (tempus-dominus.js:1562:42)
at tempus-dominus.js:1584:25
at Array.forEach ()
at spread (tempus-dominus.js:1562:42)
at Function._mergeOptions (tempus-dominus.js:1590:13)
at TempusDominus._initializeOptions (tempus-dominus.js:3319:38)

Originally posted by @amigian74 in #2467 (comment)

@Eonasdan
Copy link
Owner

Hi. I think I fixed this in the dev branch. You can try it here

Eonasdan added a commit that referenced this issue May 13, 2022
Eonasdan added a commit that referenced this issue May 15, 2022
* make viewMode optional (#2551)

* introduce a simple overridable function parseInput (#2552)

so that you don't have to know all the internal details when overriding
this just gets 1 input and can return another
Just as formatInput also works (its the opposite)

* fixed #2487, #2495

* fixed #2487, #2495

* fix for #2506

* fix for #2549

* fix for #2549

* pub npm

* pub npm

* package update

Co-authored-by: Johan Compagner <[email protected]>
Eonasdan added a commit that referenced this issue Jun 10, 2022
* make viewMode optional (#2551)

* introduce a simple overridable function parseInput (#2552)

so that you don't have to know all the internal details when overriding
this just gets 1 input and can return another
Just as formatInput also works (its the opposite)

* fixed #2487, #2495

* fixed #2487, #2495

* fix for #2506

* fix for #2549

* fix for #2549

* pub npm

* pub npm

* package update

* * added locale from pr
* updated github templates
* updated link nav

* fixes #2583, #2578

Co-authored-by: Johan Compagner <[email protected]>
Eonasdan added a commit that referenced this issue Jul 11, 2022
* make viewMode optional (#2551)

* introduce a simple overridable function parseInput (#2552)

so that you don't have to know all the internal details when overriding
this just gets 1 input and can return another
Just as formatInput also works (its the opposite)

* fixed #2487, #2495

* fixed #2487, #2495

* fix for #2506

* fix for #2549

* fix for #2549

* pub npm

* pub npm

* package update

* * added locale from pr
* updated github templates
* updated link nav

* fixes #2583, #2578

* [IMP] adding support for Arabic locales (#2592)

* Add display.theme option to control dark/light mode (#2593)

* adding display.theme to control dark vs light mode

* removing changes in dist folder per contribution guidelines

* fixes #2547

* upstream

* fixing bug where side-by-side shows blank clock (#2596) (#2597)

* fix clock

* fix #2595

* fix #2563
fix #2563

* fix #2599

* fix #2576

* issue templates to forms

* fixes #2568

* nuget package

* fix spelling and oops

* remove commented out code

Co-authored-by: Johan Compagner <[email protected]>
Co-authored-by: Khaled Said <[email protected]>
Co-authored-by: Killian Hale <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants