Prevent input focus from scrolling

Remove focus from input to prevent scrolling behavior.
This commit is contained in:
Christopher Cookman 2026-08-10 16:21:28 -06:00 committed by GitHub
parent d7f87ce0bd
commit a88687a11b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,6 @@ export function openTypeToConfirmModal(opts = {}) {
const input = overlay.querySelector('#ttcInput');
const confirmBtn = overlay.querySelector('#ttcConfirm');
const errorEl = overlay.querySelector('#ttcError');
input.focus({ preventScroll: true });
const matches = () => input.value.trim() === String(expected);
input.addEventListener('input', () => { confirmBtn.disabled = !matches(); });