It looks like this widget isn't disabling the form elements when leaving the selected groups starts. This allows multiple click of the Leave button, resulting in unwanted failures. Therefore, this should be added to this widget first:

```
$('button, input', $rootel).prop('disabled', true);
```

Enabling the form can probably happen when the modal is rendered. That might actually solve this issue at the same time.