Skip to content

Commit

Permalink
Cluster name show validation message when typing characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 committed Mar 7, 2024
1 parent 8a0e737 commit 63f8cc9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const RichInputField: React.FC<RichInputFieldPropsProps> = React.forwardRef(
validate,
idPostfix,
richValidationMessages,
noDefaultOnChange,
...props
},
ref: React.Ref<HTMLInputElement>,
Expand Down Expand Up @@ -119,6 +120,10 @@ const RichInputField: React.FC<RichInputFieldPropsProps> = React.forwardRef(
isRequired={isRequired}
aria-describedby={`${fieldId}-helper`}
className="rich-input__text"
onChange={(event) => {
if (!popoverOpen) setPopoverOpen(true);
!noDefaultOnChange && field.onChange(event);
}}
/>
</InputGroupItem>
<InputGroupItem>
Expand Down

0 comments on commit 63f8cc9

Please sign in to comment.