Skip to content

Commit b273113

Browse files
DOC-2609: Resizing images by typing into the input didn't update the … (#3582)
* DOC-2609: Resizing images by typing into the input didn't update the attribute correctly. * Update modules/ROOT/pages/7.6.1-release-notes.adoc * Added ticket number to entry. * Improved wording and removed the reference of the attribute's name. * Update modules/ROOT/pages/7.6.1-release-notes.adoc * Update modules/ROOT/pages/7.6.1-release-notes.adoc * Update modules/ROOT/pages/7.6.1-release-notes.adoc * Update modules/ROOT/pages/7.6.1-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]>
1 parent b1c2ffa commit b273113

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/ROOT/pages/7.6.1-release-notes.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ The {productname} {release-version} release includes an accompanying release of
122122

123123
**Image Optimizer** includes the following fixes.
124124

125+
==== Resizing images by typing into the input didn't update the `style` attribute correctly.
126+
// TINY-11669
127+
128+
An issue was identified where an internal custom `style` attribute of an image was not updated correctly after a user modified its width and height.
129+
130+
This issue occurred because the resize function was triggered while the selection focus was elsewhere, due to a debounce delay between the input and the resize operation. As a result, the resize operation was performed on the current selection instead of the intended image.
131+
132+
This led to other editor components that rely on that custom `style` attribute to accidentally read outdated values, resulting in the resize not being applied correctly since the selection was not on the intended image.
133+
134+
{productname} {release-version} addresses this issue, by updating the custom `style` attribute appropriately whenever a resize operation is performed. The resize function now takes in the intended image as a parameter, ensuring that all editor components referencing that custom `style` attribute read the most recent value entered. Additionally, the resize operation is applied to the correct image, even before the debounce time elapses.
135+
125136
==== Images with existing `srcset` were not handled correctly.
126137
// #TINY-11653
127138

0 commit comments

Comments
 (0)