fix: prevent secret input from auto focusing to reveal value when opening dialog

This commit is contained in:
Scott Wilson
2024-10-25 14:45:53 -07:00
parent d0bcbe15c6
commit b3e61f579d
2 changed files with 2 additions and 0 deletions

View File

@@ -342,6 +342,7 @@ export const SecretItem = memo(
<ModalContent
title="Secret Reference Details"
subTitle="Visual breakdown of secrets referenced by this secret."
onOpenAutoFocus={(e) => e.preventDefault()} // prevents secret input from displaying value on open
>
<SecretReferenceTree
secretPath={secretPath}

View File

@@ -250,6 +250,7 @@ export const SecretEditRow = ({
<ModalContent
title="Secret Reference Details"
subTitle="Visual breakdown of secrets referenced by this secret."
onOpenAutoFocus={(e) => e.preventDefault()} // prevents secret input from displaying value on open
>
<SecretReferenceTree
secretPath={secretPath}