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<{}> = () => {
605605 onChange = { bind ( handleFormValueChange , this , 'otherPaymentType' ) }
606606 error = { formErrors . otherPaymentType }
607607 tabIndex = { 0 }
608+ maxLength = { 8 }
608609 />
609610 ) }
610611 </ div >
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export interface InputTextProps {
3737 readonly forceUpdateValue ?: boolean
3838 readonly inputControl ?: UseFormRegisterReturn
3939 readonly isLoading ?: boolean
40+ readonly maxLength ?: number
4041}
4142
4243const InputText : FC < InputTextProps > = ( props : InputTextProps ) => {
@@ -70,6 +71,7 @@ const InputText: FC<InputTextProps> = (props: InputTextProps) => {
7071 onBlur = { props . inputControl ? props . inputControl . onBlur : props . onBlur }
7172 onChange = { props . inputControl ? props . inputControl . onChange : props . onChange }
7273 name = { props . inputControl ? props . inputControl . name : props . name }
74+ maxLength = { props . maxLength }
7375 />
7476 )
7577
You can’t perform that action at this time.
0 commit comments