This commit is contained in:
Jürgen Mummert
2025-12-31 12:10:27 +01:00
parent 7613d20831
commit 41c9db954d
@@ -153,9 +153,12 @@ Contao 5 Frontend Module Template
results.innerHTML = ''; results.innerHTML = '';
if (!hits || !hits.length) { if (!hits || !hits.length) {
document.body.classList.remove('search-active');
return; return;
} }
document.body.classList.add('search-active');
for (const hit of hits) { for (const hit of hits) {
// console.log('hit.type =', hit.type); // // console.log('hit.type =', hit.type); //