Skip to content

Commit

Permalink
Cleanup the existing secret field functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewballantyne committed Oct 11, 2024
1 parent 0c15247 commit 4bd5837
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 4bd5837

Please sign in to comment.