Skip to content

Commit

Permalink
Lightbox: Fix "Expand on click" control being disabled unintentionally (
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jan 23, 2024
1 parent 4979523 commit 27fc84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ export default function Image( {
const lightboxChecked =
!! lightbox?.enabled || ( ! lightbox && !! lightboxSetting?.enabled );

const lightboxToggleDisabled = linkDestination !== 'none';
const lightboxToggleDisabled =
linkDestination && linkDestination !== 'none';

const dimensionsControl = (
<DimensionsTool
Expand Down

0 comments on commit 27fc84e

Please sign in to comment.