diff --git a/src/components/widget/Attributes/Attributes.js b/src/components/widget/Attributes/Attributes.js index 30d074d0f..d7b68904f 100644 --- a/src/components/widget/Attributes/Attributes.js +++ b/src/components/widget/Attributes/Attributes.js @@ -126,7 +126,10 @@ class Attributes extends Component { //there are required values that are not set. just close if (mandatory.length && !valid){ - return this.handleToggle(false); + if(window.confirm('Do you really want to leave?')){ + this.handleToggle(false); + } + return; } dispatch(completeRequest(attributeType, attrId)).then(response => {