mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
make dates required
This commit is contained in:
committed by
Thomas Ruoff
parent
4b16e07985
commit
aeb03f3330
@@ -77,7 +77,7 @@ export default function DateSelect() {
|
||||
</label>
|
||||
<DayPickerInput
|
||||
ref={fromRef}
|
||||
inputProps={{ className: 'input-text' }}
|
||||
inputProps={{ className: 'input-text', required: true }}
|
||||
value={from}
|
||||
placeholder="Von"
|
||||
formatDate={MomentLocaleUtils.formatDate}
|
||||
@@ -95,7 +95,11 @@ export default function DateSelect() {
|
||||
{' - '}
|
||||
<DayPickerInput
|
||||
ref={toRef}
|
||||
inputProps={{ className: 'input-text', disabled: !from }}
|
||||
inputProps={{
|
||||
className: 'input-text',
|
||||
disabled: !from,
|
||||
required: true,
|
||||
}}
|
||||
value={to}
|
||||
placeholder="Bis"
|
||||
formatDate={MomentLocaleUtils.formatDate}
|
||||
|
||||
Reference in New Issue
Block a user