From ece4852d4fdbfd89939fcafdd6e7cf003d365109 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 11 Feb 2026 15:23:45 +0000 Subject: [PATCH] searchbar X Button visibility fix --- frontend/js/videos.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/js/videos.js b/frontend/js/videos.js index 91cec0a..19a090f 100644 --- a/frontend/js/videos.js +++ b/frontend/js/videos.js @@ -323,8 +323,11 @@ App.videos = App.videos || {}; App.videos.handleSearch = function(value) { if (typeof value === 'string') { const searchInput = document.getElementById('search-input'); - if (searchInput && searchInput.value !== value) { - searchInput.value = value; + if (searchInput) { + if (searchInput.value !== value) { + searchInput.value = value; + } + searchInput.dispatchEvent(new Event('input', { bubbles: true })); } } state.currentPage = 1;