Skip to content

Commit 63f8cc9

Browse files
committed
Cluster name show validation message when typing characters
1 parent 8a0e737 commit 63f8cc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: libs/ui-lib/lib/common/components/ui/formik/RichInputField.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const RichInputField: React.FC<RichInputFieldPropsProps> = React.forwardRef(
8787
validate,
8888
idPostfix,
8989
richValidationMessages,
90+
noDefaultOnChange,
9091
...props
9192
},
9293
ref: React.Ref<HTMLInputElement>,
@@ -119,6 +120,10 @@ const RichInputField: React.FC<RichInputFieldPropsProps> = React.forwardRef(
119120
isRequired={isRequired}
120121
aria-describedby={`${fieldId}-helper`}
121122
className="rich-input__text"
123+
onChange={(event) => {
124+
if (!popoverOpen) setPopoverOpen(true);
125+
!noDefaultOnChange && field.onChange(event);
126+
}}
122127
/>
123128
</InputGroupItem>
124129
<InputGroupItem>

0 commit comments

Comments
 (0)