Skip to content

Commit

Permalink
Reset focalPoint after replacing the cover image WordPress#28859
Browse files Browse the repository at this point in the history
  • Loading branch information
paulopmt1 committed Aug 1, 2022
1 parent 7ba4f95 commit 88dd14d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/cover/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ export function attributesFromMedia( setAttributes, dimRatio ) {
id: media.id,
alt: media?.alt,
backgroundType: mediaType,
focalPoint: undefined,
...( mediaType === VIDEO_BACKGROUND_TYPE
? { focalPoint: undefined, hasParallax: undefined }
? { hasParallax: undefined }
: {} ),
} );
};
Expand Down

0 comments on commit 88dd14d

Please sign in to comment.