Skip to content

Commit

Permalink
update the custom placeholder data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Dec 19, 2024
1 parent 80dfbfb commit 6087696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ function ParagraphBlock( {
}
data-empty={ RichText.isEmpty( content ) }
placeholder={ placeholder }
data-custom-placeholder={ placeholder ? true : undefined }
data-custom-placeholder={
placeholder && ! isZoomOut ? true : undefined
}
__unstableEmbedURLOnPaste
__unstableAllowPrefixTransformations
/>
Expand Down

0 comments on commit 6087696

Please sign in to comment.