Skip to content

Commit

Permalink
Cleanup the existing secret field functionality (opendatahub-io#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewballantyne authored Oct 14, 2024
1 parent ae66e3b commit a15a69c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ const TrustyDBExistingSecretField: React.FC<TrustyDBExistingSecretFieldProps> =
value={data}
onChange={(e, value) => {
delayCheckState();
onDataChange(value);
onDataChange(value.trim());
}}
onBlur={() => {
delayCheckState.cancel();
onCheckState();
if (state !== TrustyInstallModalFormExistingState.EXISTING) {
// If you're not already validated, cancel exiting efforts and check now
delayCheckState.cancel();
onCheckState();
}
}}
validated={inputState}
/>
Expand Down

0 comments on commit a15a69c

Please sign in to comment.