From 69ce5b05ca8dec1fd55ba9142dd1c0b7c48764f1 Mon Sep 17 00:00:00 2001 From: javadbat Date: Tue, 20 Feb 2024 11:56:40 +0330 Subject: [PATCH] fix: make value optional --- CHANGELOG.md | 3 +++ lib/JBDateInput.tsx | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a88ae2a..b097fb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ #changelog +## [2.6.1] - 2024-2-20 +### fixed +- fix optional value ## [2.6.0] - 2024-2-20 ### new features - add `gregorianMonthList` and `jalaliMonthList` prop to easily customize month names. diff --git a/lib/JBDateInput.tsx b/lib/JBDateInput.tsx index 73c679c..c5ff7bb 100644 --- a/lib/JBDateInput.tsx +++ b/lib/JBDateInput.tsx @@ -43,7 +43,7 @@ export type JBDateInputProps = { valueType?: 'GREGORIAN'|'JALALI'|'TIME_STAMP', inputType?: 'GREGORIAN'|'JALALI', direction?: 'ltr'|'rtl', - value: string | Date | null | undefined, + value?: string | Date | null | undefined, validationList?: JBDateInputValidationItem[], required?: boolean, calendarDefaultDateView?:{ year:number, month: number, dateType:JBDateInputInputTypes}, diff --git a/package.json b/package.json index 81d7a71..0443fa7 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "react component", "react" ], - "version": "2.6.0", + "version": "2.6.1", "bugs": "https://github.com/javadbat/jb-date-input-react/issues", "license": "MIT", "files": [