From db830856f3dd5b843476c2769117bc2e1d4c07e7 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 9 Dec 2022 06:16:10 +0900 Subject: [PATCH] Media & Text Block: create undo history when media width is changed (#46084) --- packages/block-library/src/media-text/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/media-text/edit.js b/packages/block-library/src/media-text/edit.js index b85249f3a74b27..83b7074e3d1550 100644 --- a/packages/block-library/src/media-text/edit.js +++ b/packages/block-library/src/media-text/edit.js @@ -199,7 +199,7 @@ function MediaTextEdit( { attributes, isSelected, setAttributes, clientId } ) { setAttributes( { mediaWidth: applyWidthConstraints( width ), } ); - setTemporaryMediaWidth( applyWidthConstraints( width ) ); + setTemporaryMediaWidth( null ); }; const classNames = classnames( {