From 03e1fa75c54e63956ed10c0b9c36412f4bfe4117 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Wed, 18 Mar 2026 22:33:45 +0800 Subject: [PATCH] feat: auto-focus URL input when batch import modal opens --- static/js/managers/BatchImportManager.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/managers/BatchImportManager.js b/static/js/managers/BatchImportManager.js index 53984a6b..fff900bb 100644 --- a/static/js/managers/BatchImportManager.js +++ b/static/js/managers/BatchImportManager.js @@ -104,6 +104,14 @@ export class BatchImportManager { // Clean up any existing connections this.cleanupConnections(); + + // Focus on the URL input field for better UX + setTimeout(() => { + const urlInput = document.getElementById('batchUrlInput'); + if (urlInput) { + urlInput.focus(); + } + }, 100); } /**