Hi miguel.
There is a way but it ain’t easy.
What you have to do is:
onChange → check if selectedindices is not greater then the max selections.
if not greater → save the values of your checkboxgroup.
if greater → compare wich values are not the same.
then find the index of it.
then get the checkboxgroup selectedindices and slice them.
then add them back to the checkboxgroup