Image unstyled updates

pull/4987/head
tugcekucukoglu 2023-12-20 14:44:46 +03:00
parent f06c2ea23a
commit e7f454d423
1 changed files with 2 additions and 6 deletions

View File

@ -104,13 +104,9 @@ export default {
this.previewClick = true; this.previewClick = true;
}, },
onMaskClick(event) { onMaskClick(event) {
const isActionbarTarget = [event.target.classList].includes('p-image-action') || event.target.closest('.p-image-action'); const isBarActionsClicked = DomHandler.isAttributeEquals(event.target, 'data-pc-section-group', 'action') || event.target.closest('[data-pc-section-group="action"]');
if (isActionbarTarget) { if (!this.previewClick && !isBarActionsClicked) {
return;
}
if (!this.previewClick) {
this.previewVisible = false; this.previewVisible = false;
this.rotate = 0; this.rotate = 0;
this.scale = 1; this.scale = 1;