Pare sa vina de undeva de la codu asta
;;(function($, _, undefined) {
"use strict";
ips.controller.register('core.front.core.quickSearch', {
initialize: function() {
this.on('mouseup', '.cSearchFilter__menu', this.updateAndClose);
this.on('change', 'input[name="type"]', this.updateFilter);
this.on('focus', '.cSearchSubmit', this.a11yFocusSubmit);
this.on('keypress', '.cSearchFilter__text', this.a11yOpenDetails);
this.setup();
},
setup: function() {
document.querySelector('.cSearchFilter__text').innerText = document.querySelector('.cSearchFilter__menu input:checked + .cSearchFilter__menuText').innerHTML;
},
updateFilter: function(e) {
document.querySelector('.cSearchFilter__text').innerText = e.target.nextElementSibling.innerHTML;
},
updateAndClose: function(e) {
setTimeout(()=>{
document.querySelector('.cSearchFilter').open = false;
document.querySelector('#elSearchField').focus();
}
, "500");
},
a11yOpenDetails: function(e) {
if (e.key === "Enter") {
e.preventDefault();
document.querySelector('.cSearchFilter').open = true;
document.querySelector('.cSearchFilter__menu input:checked').focus();
}
},
a11yFocusSubmit: function(e) {
document.querySelector('.cSearchFilter').open = false;
}
});
}(jQuery, _));
Daca s-a facut vreo modificare la search sau vreun update, aparent selectorii aia nu exista. Fix la functia de setup da si eroarea. Poate ajuta...