Fix Input ref timing, PairEditor initialization, and environment variable focus

This commit is contained in:
Gregory Schier
2025-11-04 14:04:12 -08:00
parent fa3a0b57f9
commit 0a6228bf16
3 changed files with 13 additions and 5 deletions

View File

@@ -401,7 +401,7 @@ function EncryptionInput({
setState({ fieldType: 'encrypted', security, value, obscured: true, error: null });
// We're calling this here because we want the input to be fully initialized so the caller
// can do stuff like change the selection.
setRef?.(inputRef.current);
requestAnimationFrame(() => setRef?.(inputRef.current));
},
onError: (value) => {
setState({