All links and buttons are disabled on the Tools page after select any option from Settings menu - hide overlay on menu item selection
@@ -331,6 +331,9 @@ export default class DockerRegistriesActionsButton extends React.Component {
};
_onMenuSelect = ({key}) => {
+ this.setState({
+ overlayVisible: false
+ }, () => {
switch (key) {
case 'add-registry': this._openCreateRegistryForm(); break;
case 'edit-registry': this._openEditRegistryForm(); break;
@@ -341,6 +344,7 @@ export default class DockerRegistriesActionsButton extends React.Component {
case 'delete-group': this._confirmDeleteGroup(); break;
case 'enable-tool': this._openEnableToolForm(); break;
}
+ });
};
_renderActionsMenu = () => {
@@ -501,6 +505,7 @@ export default class DockerRegistriesActionsButton extends React.Component {
<Dropdown
trigger={['click']}
overlayStyle={{zIndex: 2}}
+ visible={overlayVisible}
onVisibleChange={this.handleOverlayVisibility}
overlay={(
<div
