diff --git a/apps/scandic-web/components/Forms/Signup/index.tsx b/apps/scandic-web/components/Forms/Signup/index.tsx index 40dbbe403..55f8b3756 100644 --- a/apps/scandic-web/components/Forms/Signup/index.tsx +++ b/apps/scandic-web/components/Forms/Signup/index.tsx @@ -249,8 +249,8 @@ export default function SignupForm({ defaultMessage: "Email address", })} name="email" - registerOptions={{ required: true }} type="email" + registerOptions={{ required: true }} /> {intl.formatMessage({ id: "signup.yesConsent", @@ -344,9 +342,7 @@ export default function SignupForm({ - {/* - This is a manual validation trigger workaround: - - The Controller component (which Input uses) doesn't re-render on submit, - which prevents automatic error display. - - Future fix requires Input component refactoring (out of scope for now). - */} - {!methods.formState.isValid ? ( - - ) : ( - - )} + diff --git a/packages/booking-flow/lib/components/BookingWidget/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx b/packages/booking-flow/lib/components/BookingWidget/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx index 2623ad0f7..d14b16348 100644 --- a/packages/booking-flow/lib/components/BookingWidget/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx +++ b/packages/booking-flow/lib/components/BookingWidget/GuestsRoomsPicker/ChildSelector/ChildInfoSelector.tsx @@ -146,7 +146,6 @@ export default function ChildInfoSelector({
setValue(DateName.day, Number(key))} - isRequired enableFiltering={isDesktop} isInvalid={fieldState.invalid} onBlur={field.onBlur} @@ -142,7 +141,6 @@ export default function DateSelect({ label={labels.month} name={DateName.month} onSelectionChange={(key) => setValue(DateName.month, Number(key))} - isRequired enableFiltering={isDesktop} isInvalid={fieldState.invalid} onBlur={field.onBlur} @@ -156,7 +154,6 @@ export default function DateSelect({ label={labels.year} name={DateName.year} onSelectionChange={(key) => setValue(DateName.year, Number(key))} - isRequired enableFiltering={isDesktop} isInvalid={fieldState.invalid} onBlur={field.onBlur} diff --git a/packages/design-system/lib/components/Form/FormInput/index.tsx b/packages/design-system/lib/components/Form/FormInput/index.tsx index c6bd8c77d..7489baf24 100644 --- a/packages/design-system/lib/components/Form/FormInput/index.tsx +++ b/packages/design-system/lib/components/Form/FormInput/index.tsx @@ -78,7 +78,6 @@ export const FormInput = forwardRef( isDisabled={isDisabled} isReadOnly={readOnly} isInvalid={fieldState.invalid} - isRequired={!!registerOptions.required} > ( isDisabled={isDisabled} isReadOnly={readOnly} isInvalid={fieldState.invalid} - isRequired={!!registerOptions.required} >