mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Remove pristine check from disabled state
This commit is contained in:
parent
31d46e36b2
commit
3c2b0f528f
2 changed files with 2 additions and 3 deletions
|
|
@ -56,7 +56,6 @@ export const BookingDatesFormComponent = props => {
|
|||
invalid,
|
||||
handleSubmit,
|
||||
price: unitPrice,
|
||||
pristine,
|
||||
submitting,
|
||||
intl,
|
||||
} = props;
|
||||
|
|
@ -108,7 +107,7 @@ export const BookingDatesFormComponent = props => {
|
|||
const hasBookingInfo = bookingStart && bookingEnd;
|
||||
const bookingInfo = breakdown(bookingStart, bookingEnd, unitPrice);
|
||||
|
||||
const submitDisabled = pristine || submitting || invalid || !hasBookingInfo;
|
||||
const submitDisabled = submitting || invalid || !hasBookingInfo;
|
||||
|
||||
return (
|
||||
<form className={classes} onSubmit={handleSubmit}>
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ exports[`BookingDatesForm matches snapshot with selected dates 1`] = `
|
|||
</p>
|
||||
<Button
|
||||
className={null}
|
||||
disabled={true}
|
||||
disabled={false}
|
||||
rootClassName={null}
|
||||
type="submit">
|
||||
<FormattedMessage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue