Skip to content

Commit e9be525

Browse files
committed
fix(datepicker): Passing down the required prop to the Input component
1 parent 6154361 commit e9be525

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/datepicker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const semanticInputProps = [
1919
'loading',
2020
'name',
2121
'placeholder',
22+
'required',
2223
'size',
2324
'transparent',
2425
];

stories/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ storiesOf('Examples', module)
9696
label="Birth date"
9797
id="birthDate"
9898
onDateChange={console.log}
99+
required
99100
/>
100101
<SemanticDatepicker
101102
label="Start date"

0 commit comments

Comments
 (0)