Searchbox widget not working

Created on 13 June 2023, almost 2 years ago

Problem/Motivation

Not sure how to describe this problem as I can't see any indication of what the issue might be. Very simply, the searchbox widget doesn't work. It does not narrow down the results, at all.

I tried with the stable 2.0.6 version, the 2.0 dev version, and 3.0.0-beta1, and the issue persists.

I thought the issue might be my custom facets templates and javascript, so removed those, with no success.

Tried enabling AJAX on the view, no success.

The searchbox widget is on a taxonomy facet. I've tried with the searchable list of links and checkboxes; neither works.

It's the only one on the page, so can't be the multiple searchboxes issue reported here 🐛 Facets searchbox widget doesn't work when multiple facets with this widget are shown RTBC .

No related JS errors in the console.

I'm completely stumped. I feel like there must be something simple and obvious I'm missing, since there are no similar issues in the queue.

The theme is a custom subtheme of the Bootstrap theme, if that helps at all.

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada plousia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @plousia
  • 🇨🇦Canada plousia

    Hmm switching to the Olivero theme causes the searchbox to work, so must be an issue with my theme. I'll update if and when I'm able to track it down.

  • 🇨🇦Canada plousia

    After a lot of work I narrowed this down to the fact that I was displaying the region with the facets block twice on the page, once for mobile and once for desktop. Probably not a good idea for performance anyway, so I'll just have to bite the bullet and write the JS to do it properly. Interestingly, once I stopped hiding one of the regions with CSS, the searchbox widget in both regions worked. Maybe relevant information for the maintainers, or anyone else who runs into the same issue.

Production build 0.71.5 2024