Skip to content

Commit

Permalink
Update link reset logic in SiteTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukhendu2002 committed Dec 25, 2024
1 parent f226f7b commit a7eb82c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/site-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,16 @@ export default function SiteTitleEdit( {
label={ __( 'Settings' ) }
resetAll={ () => {
setAttributes( {
isLink: false,
isLink: true,
linkTarget: '_self',
} );
} }
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
hasValue={ () => isLink !== false }
hasValue={ () => isLink === false }
label={ __( 'Make title link to home' ) }
onDeselect={ () => setAttributes( { isLink: false } ) }
onDeselect={ () => setAttributes( { isLink: true } ) }
isShownByDefault
>
<ToggleControl
Expand Down

0 comments on commit a7eb82c

Please sign in to comment.