searchbar X Button visibility fix
This commit is contained in:
@@ -323,8 +323,11 @@ App.videos = App.videos || {};
|
|||||||
App.videos.handleSearch = function(value) {
|
App.videos.handleSearch = function(value) {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
const searchInput = document.getElementById('search-input');
|
const searchInput = document.getElementById('search-input');
|
||||||
if (searchInput && searchInput.value !== value) {
|
if (searchInput) {
|
||||||
searchInput.value = value;
|
if (searchInput.value !== value) {
|
||||||
|
searchInput.value = value;
|
||||||
|
}
|
||||||
|
searchInput.dispatchEvent(new Event('input', { bubbles: true }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user