Selection Tag: option to prevent unselected selection tag

Question:
Is it possible to add code to my existing selection tags that prevents a user from having no selection tag selected?

Product:
Wix Studio Editor

What are you trying to achieve:
I would like to use selection tags as size options for products our store carries. When the page loads initially, the default selection tag value is ‘size A’. When a user clicks ‘size B’, ‘size B’ becomes selected and ‘Size A’ is unselected. However, if the user clicks ‘size B’ again, then neither option is selected. In this instance, both options are unselected.

When sharing code please share it as text:

```js
const myCode = ‘here’;
```

It will then display as below and be much easier for people to read and help.

const myCode = ‘here’;

Yes in the onChange you could check to see if no tags are selected and then select a default tag (or possibly the prior set of selections).