Allow clear option to be configured on better exposed filter

Created on 29 May 2024, 6 months ago

Problem/Motivation

Currently, there is no option to configure the Allow clear option from select2.
Using select2 field widget only the placeholder option is available.

Sometimes we need to enable this option on the select, even if the select2 box is not multiple.
Since the select2 allows to clear option without multiple options available. We should add this option in this filter too.

Steps to reproduce

Add any select filter on your view.
Set the better exposed filter.
Choose the select2 field widget.
You can see only the placeholder option available.

Proposed resolution

Add another setting to set this flag too.

Remaining tasks

- Add unit test to clear option feature.

Feature request
Status

Needs work

Version

1.15

Component

Views integration

Created by

🇧🇷Brazil joaopauloc.dev

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024