Javascript error if Views Selective Filter module removes all checkboxes

Created on 27 August 2015, over 9 years ago
Updated 15 February 2023, almost 2 years ago

If BEF is enabled with the Views Selective Filter module, removing all checkboxes from an exposed filter (as a result of the Selective Filter) causes a Javascript error. This assumes you have more than one exposed filter.

The root cause is with the slice method on 336 of better_exposed_filters.js:

var $filter_name = $('input', this).attr('name').slice(0, -2);

The input wouldn't exist in this case so we need to check if there is one.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024