Quick Fix for {search_term_filter} Not Refreshing After Click Submit
If anyone is facing the issue where {search_term_filter} does not update when clicking the filter submit button, here’s a simple temporary solution until the team provides an official fix:
document.addEventListener('bricks/ajax/query_result/displayed', () => {
const inputValue = document.querySelector(".job-serach-filter input")?.value;// Change to your input field selector
if (!inputValue) return;
const termElements = document.querySelectorAll(".search-results [data-brx-ls-term]");// Change to your search result text field selector
if (termElements.length === 0) return;
termElements.forEach(el => el.textContent = inputValue);
});
thank you for your report. I was able to replicate it and I created a local task for it. It appears that the issue only happens if we choose “on submit.” If we choose “on input”, then it works.
Thanks a lot for confirming and creating a task for it I’m glad to hear you were able to replicate the issue.
Looking forward to the update — really appreciate the quick response!
Please let us know if you are still experiencing issues.
As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment. The more feedback we get, the better