Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

address greppy

Scott Wilson93f5b01f02e7
diff --git a/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx b/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx
index d35367e6a0..c0349e67bd 100644
--- a/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx
+++ b/frontend/src/components/v2/InfisicalSecretInput/InfisicalSecretInput.tsx
@@ -441,8 +441,10 @@ export const InfisicalSecretInput = forwardRef<HTMLTextAreaElement, Props>(
if (props.onFocus) props.onFocus(evt);
const el = evt.currentTarget;
requestAnimationFrame(() => {
- const len = el.value.length;
- el.setSelectionRange(len, len);
+ if (el.selectionStart === el.selectionEnd) {
+ const len = el.value.length;
+ el.setSelectionRange(len, len);
+ }
});
setIsFocused.on();
}}