Bugfix
This commit is contained in:
@@ -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); //
|
||||||
|
|||||||
Reference in New Issue
Block a user