Currently, swithcing between permissions in the sharing permissions
details view would toggle the custom permissions view.
We think, it's better for the custom permission option to simple
expand the custom permissions view and never close it gain even if the
user is switching between bundled permissions.
The user can always collapse the view by using the "Advanced settings" toggle.