File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
apps/copilots/src/pages/copilot-request-form
libs/ui/lib/components/form/form-groups/form-input/input-text Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -605,6 +605,7 @@ const CopilotRequestForm: FC<{}> = () => {
605
605
onChange = { bind ( handleFormValueChange , this , 'otherPaymentType' ) }
606
606
error = { formErrors . otherPaymentType }
607
607
tabIndex = { 0 }
608
+ maxLength = { 8 }
608
609
/>
609
610
) }
610
611
</ div >
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export interface InputTextProps {
37
37
readonly forceUpdateValue ?: boolean
38
38
readonly inputControl ?: UseFormRegisterReturn
39
39
readonly isLoading ?: boolean
40
+ readonly maxLength ?: number
40
41
}
41
42
42
43
const InputText : FC < InputTextProps > = ( props : InputTextProps ) => {
@@ -70,6 +71,7 @@ const InputText: FC<InputTextProps> = (props: InputTextProps) => {
70
71
onBlur = { props . inputControl ? props . inputControl . onBlur : props . onBlur }
71
72
onChange = { props . inputControl ? props . inputControl . onChange : props . onChange }
72
73
name = { props . inputControl ? props . inputControl . name : props . name }
74
+ maxLength = { props . maxLength }
73
75
/>
74
76
)
75
77
You can’t perform that action at this time.
0 commit comments