WordPress.org

Make WordPress Core

Opened 4 weeks ago

Last modified 24 hours ago

#49073 new defect (bug)

Edit Media aspectratio-free selection not possible after setting aspect ratio once

Reported by: TBschen Owned by:
Milestone: 5.4 Priority: normal
Severity: minor Version: 5.3.2
Component: Media Keywords: has-patch needs-testing
Focuses: javascript Cc:
PR Number:

Description

Go to media, edit an image, click on the Edit Image button
If you select part of the image, you can freely decide its selection (works).
If you enter an aspect ratio on the right and delete the numbers afterwards, your aspect ratio is still what was entered before. You can't get a aspectratio-free selection anymore until you reload.

Attachments (1)

49073.diff (398 bytes) - added by valentinbora 24 hours ago.
Reset aspect ratio constraints when one of the width/height fields fails numeric validation.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


7 days ago

#2 @antpb
7 days ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 5.4

Thanks for this report @TBschen! Great first ticket! @pbiron confirmed that this behavior is indeed as you describe. I’m setting the milestone to 5.4 and will try to get this in the timeline of the release.

@valentinbora
24 hours ago

Reset aspect ratio constraints when one of the width/height fields fails numeric validation.

#3 @valentinbora
24 hours ago

  • Keywords has-patch needs-testing added; needs-patch removed
Note: See TracTickets for help on using tickets.