Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 69ce5b0

Browse files
committed
fix: make value optional
1 parent bdc2c8c commit 69ce5b0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#changelog
2+
## [2.6.1] - 2024-2-20
3+
### fixed
4+
- fix optional value
25
## [2.6.0] - 2024-2-20
36
### new features
47
- add `gregorianMonthList` and `jalaliMonthList` prop to easily customize month names.

lib/JBDateInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type JBDateInputProps = {
4343
valueType?: 'GREGORIAN'|'JALALI'|'TIME_STAMP',
4444
inputType?: 'GREGORIAN'|'JALALI',
4545
direction?: 'ltr'|'rtl',
46-
value: string | Date | null | undefined,
46+
value?: string | Date | null | undefined,
4747
validationList?: JBDateInputValidationItem[],
4848
required?: boolean,
4949
calendarDefaultDateView?:{ year:number, month: number, dateType:JBDateInputInputTypes},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react component",
2020
"react"
2121
],
22-
"version": "2.6.0",
22+
"version": "2.6.1",
2323
"bugs": "https://github.com/javadbat/jb-date-input-react/issues",
2424
"license": "MIT",
2525
"files": [

0 commit comments

Comments
 (0)