Option Group with Multi Selection, item always marked

Hello guys, i have a problem with this component, one time as you mark some item, they never will stay unmarked. Ex: 02 itens at option group, you mark item one, and mark item two, then you uncheck item one(or item two), now you can’t uncheck the last item, how can i change this?

In my project, each item is a filter in a report, no one item checked = no filters, in this case, i can’t create an option “no filters”. I need this component works as a checkbox, but with multi selection.

http://demo.vaadin.com/sampler#OptionGroups



sorry for my english Neanderthal

I’m guessing that you have copy-pasted the example as a starting point. The problem you are referring to comes from this line

citySelect.setNullSelectionAllowed(false); // user can not 'unselect'

In your case you want null selection to be allowed, try changing this.

thank you!