When a user is inputting data and misclick outside the modal, the window close and any data must be entered again. A confirmation dialog, in case some data has being inputted can save a lot of work, specially if the collectionType is big