reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

ToggleButton should not unselect active item - There should always be an item active

Open larsdouweschuitema opened this issue 4 years ago • 1 comments

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: image

  2. Change active item: image

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

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

larsdouweschuitema avatar Jul 07 '21 14:07 larsdouweschuitema

@mohdashraf010897 We can define a new prop named enableStrictSelection similar to SingleList. We would need that change in React and Vue libraries. alt img

bietkul avatar Jul 07 '21 15:07 bietkul