appbaseio / appbaseio/reactivesearch
ToggleButton should not unselect active item - There should always be an item active
- Dominant language
- JavaScript
- Stars
- 4.9k
- Forks
- 478
- PR merge metrics
- No merged PRs in 30d
Description
**Affected Projects**
VueJS
**Is your feature request related to a problem? Please describe.**
ToggleButton unselects value when clicked on active item
**Describe the solution you'd like**
ToggleButton should not unselect value when clicked on active item. It should only change the active item when clicked on that active item
**Describe alternatives you've considered**
Not considered. But could be a custom reactive component.
**Additional context**
Could be a prop to have different behavior in case you want to continue to offer this option in both ways
**Steps to reproduce**
1. Initial state:

2. Change active item:

3. Click active item (same item as step 2) - Undesired behavior

4. Click active item (same item as step 2) - Desired behavior / Stays the same

Contributor guide
Assessment
This issue has not been assessed yet.