Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Featured Image Block: Refactor setting panel #67456

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix link target attribute reset
  • Loading branch information
akasunil committed Dec 2, 2024
commit 6a81c61059e499e06bc0fa67e05ba2e79d14b255
2 changes: 1 addition & 1 deletion packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default function PostFeaturedImageEdit( {
<ToolsPanelItem
label={ __( 'Open in new tab' ) }
isShownByDefault
hasValue={ () => !! linkTarget }
hasValue={ () => '_self' !== linkTarget }
onDeselect={ () =>
setAttributes( {
linkTarget: '_self',
Expand Down
Loading