Skip to content

Commit

Permalink
Reset focalPoint after replacing the cover image #28859 (#42859)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulopmt1 authored Aug 10, 2022
1 parent 22801cf commit c3f19c4
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 c3f19c4

Please sign in to comment.