Skip to content

Commit

Permalink
Media & Text Block: create undo history when media width is changed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Dec 8, 2022
1 parent 0db2dde commit db83085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function MediaTextEdit( { attributes, isSelected, setAttributes, clientId } ) {
setAttributes( {
mediaWidth: applyWidthConstraints( width ),
} );
setTemporaryMediaWidth( applyWidthConstraints( width ) );
setTemporaryMediaWidth( null );
};

const classNames = classnames( {
Expand Down

0 comments on commit db83085

Please sign in to comment.