Commit f8484a3e authored by Tim Zallmann's avatar Tim Zallmann

Removed Crop Modal after closing it

parent 6a61d27a
......@@ -114,7 +114,9 @@ import { loadCSSFile } from '../lib/utils/css_utils';
}
onModalHide() {
return this.modalCropImg.attr('src', '').cropper('destroy');
this.modalCropImg.attr('src', '').cropper('destroy');
const modalElement = document.querySelector('.modal-profile-crop');
if (modalElement) modalElement.remove();
}
onUploadImageBtnClick(e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment