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

Commit 2f43b79

Browse files
committed
fix props validation
1 parent c12f5bd commit 2f43b79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/JBDateInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export type JBDateInputProps = {
3333
label?: string,
3434
style?:string,
3535
name?:string,
36-
min: string | null | undefined,
37-
max: string | null | undefined,
36+
min?: string | null | undefined,
37+
max?: string | null | undefined,
3838
format?: string,
3939
className?:string,
4040
onKeyup?: (e:JBDateInputEventType<KeyboardEvent>)=>void,
@@ -48,7 +48,7 @@ export type JBDateInputProps = {
4848
required?: boolean,
4949
calendarDefaultDateView?:{ year:number, month: number, dateType:JBDateInputInputTypes},
5050
usePersianNumber?: boolean,
51-
placeholder:string | null | undefined,
51+
placeholder?:string | null | undefined,
5252
children?:any,
5353
}
5454

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.3.0",
21+
"version": "2.3.1",
2222
"bugs": "https://github.com/javadbat/jb-date-input-react/issues",
2323
"license": "MIT",
2424
"files": [

0 commit comments

Comments
 (0)