mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix issue when closing context menus or modals on the search page causing the search page to break (closes #73)
This commit is contained in:
+4
-3
@@ -201,7 +201,7 @@
|
||||
// Hide search suggestions
|
||||
const searchSuggestions = searchPage.querySelector('.searchSuggestions');
|
||||
if (searchSuggestions) {
|
||||
searchSuggestions.remove();
|
||||
searchSuggestions.style.display = 'none';
|
||||
}
|
||||
|
||||
const noItemsMessage = searchPage.querySelector('.noItemsMessage.dummy-section');
|
||||
@@ -491,9 +491,10 @@
|
||||
wrapper.appendChild(btnRow);
|
||||
wrapper.appendChild(stats);
|
||||
|
||||
// Replace the original input with our wrapper
|
||||
// Insert the wrapper before the original input
|
||||
originalInput.parentElement.insertBefore(wrapper, originalInput);
|
||||
originalInput.remove(); // Remove the original input
|
||||
// Hide the original input
|
||||
originalInput.style.display = 'none';
|
||||
input.focus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user