searchbar X Button visibility fix

This commit is contained in:
Simon
2026-02-11 15:23:45 +00:00
parent a06a952a28
commit ece4852d4f

View File

@@ -323,9 +323,12 @@ App.videos = App.videos || {};
App.videos.handleSearch = function(value) {
if (typeof value === 'string') {
const searchInput = document.getElementById('search-input');
if (searchInput && searchInput.value !== value) {
if (searchInput) {
if (searchInput.value !== value) {
searchInput.value = value;
}
searchInput.dispatchEvent(new Event('input', { bubbles: true }));
}
}
state.currentPage = 1;
state.hasNextPage = true;