Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 0d38cbc

Browse files
committed
fix: set 255 maxLength for the metafields text inputs
1 parent 5e065dd commit 0d38cbc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/common/src/reservation-form/ReservationFormField.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ const ReservationFormField = ({
403403
errorText={errorText}
404404
invalid={!!error}
405405
required={required}
406+
maxLength={
407+
255 /* TODO: Might want to remove this once proper validation works */
408+
}
406409
$isWide={isWideRow}
407410
$hidden={
408411
watch("reserveeIsUnregisteredAssociation") === undefined
@@ -429,6 +432,9 @@ const ReservationFormField = ({
429432
defaultValue={defaultValue ? String(defaultValue) : undefined}
430433
invalid={!!error}
431434
required={required}
435+
maxLength={
436+
255 /* TODO: Might want to remove this once proper validation works */
437+
}
432438
$isWide={isWideRow}
433439
$hidden={
434440
field.includes("billing") && watch("showBillingAddress") !== true

0 commit comments

Comments
 (0)