We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

[JS ES5] Prevent Chip (single selection) with no value (selected = false)

Hi, how can I prevent a ChipsList (single selection) with no value? The component has a default value and the user needs to choose an option (like radio button), the problem is that he can unselect an option when click on the same option, how can I prevent it (cancel)?

This documentation about this component has few informations....

1 Reply

KR Keerthana Rajendran Syncfusion Team November 20, 2019 06:51 AM

Hi Lucas, 
Greetings from Syncfusion support. 
We have analyzed your requirement for select and unselect. By default, the selected item will get deselected during click, it is the usual behavior of chip component. We would like to let you know that, EJ2 ButtonGroup component will meet your exact requirement. Since, the group button has  single selection and multi selection mode. During single selection, minimum one value is maintained in selected state (as like radio button group). In MultiSelection mode, you will be able to select more than one value (as like checkbox group). 
To know more about the ButtonGroup, refer the below link. 
Please let us know, if you have any concerns. 

Live Chat Icon For mobile
Up arrow icon