Skip to content

Commit

Permalink
fix: make value optional
Browse files Browse the repository at this point in the history
  • Loading branch information
javadbat committed Feb 20, 2024
1 parent bdc2c8c commit 69ce5b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/JBDateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 69ce5b0

Please sign in to comment.