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

Commit f23d5aa

Browse files
committed
fix not nullable value
1 parent ad1dd8e commit f23d5aa

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.1.1] - 2023-10-17
3+
### fixed
4+
- fix value PropType to accept `null` value type
25
## [2.1.0] - 2023-3-7
36
### new features
47
- add `JBDateInputEventType` to event type for better event.target detection in typescript

lib/JBDateInput.tsx

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react component",
1919
"react"
2020
],
21-
"version": "2.1.0",
21+
"version": "2.1.1",
2222
"bugs": "https://github.com/javadbat/jb-date-input-react/issues",
2323
"license": "MIT",
2424
"files": [

0 commit comments

Comments
 (0)