The cancel button which appears on the cropping tool does not work properly. When open cropping tool for the first time there is a default selection for the image and when click cancel (or ESC) this default selection is not clearing and it indicates that you cropped the image. With other words the cancel button works like save button.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

boychev’s picture

I've found a temporary solution. Changing the default selection fixes the issue. But now we don't have default selection when cropping a file for the very first time.

Matthijs’s picture

Assigned: Unassigned » Matthijs

Hi,

Thanks for your bug report, I think the best solution would be to set a boolean to indicate that the current selection was set as a default so we can remove it when the user presses cancel. I'll have a look at this!

As a temporary fix you can also click the remove selection before closing or disable the default crop area option.

Matthijs

boychev’s picture

I've already tried the idea with a boolean value, but without any result.

Matthijs’s picture

Status: Active » Fixed

This has been fixed, I'll push it to git in a few minutes.

Matthijs

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.