Skip to content

Commit

Permalink
fix not nullable value
Browse files Browse the repository at this point in the history
  • Loading branch information
javadbat committed Oct 17, 2023
1 parent ad1dd8e commit f23d5aa
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.1.1] - 2023-10-17
### fixed
- fix value PropType to accept `null` value type
## [2.1.0] - 2023-3-7
### new features
- add `JBDateInputEventType` to event type for better event.target detection in typescript
Expand Down
2 changes: 1 addition & 1 deletion lib/JBDateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type JBDateInputProps = {
valueType?: 'GREGORIAN'|'JALALI'|'TIME_STAMP',
inputType?: 'GREGORIAN'|'JALALI',
direction?: 'ltr'|'rtl',
value?: string,
value: string | 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 @@ -18,7 +18,7 @@
"react component",
"react"
],
"version": "2.1.0",
"version": "2.1.1",
"bugs": "https://github.com/javadbat/jb-date-input-react/issues",
"license": "MIT",
"files": [
Expand Down

0 comments on commit f23d5aa

Please sign in to comment.