Skip to content

Commit

Permalink
Editor: Fix display of edit template blocks notification (#56978)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored Dec 13, 2023
1 parent 9855f16 commit 4fb8952
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function EditTemplateBlocksNotification( { contentRef } ) {

useEffect( () => {
const handleClick = async ( event ) => {
if ( renderingMode === 'template-only' ) {
if ( renderingMode !== 'template-locked' ) {
return;
}
if ( ! event.target.classList.contains( 'is-root-container' ) ) {
Expand Down Expand Up @@ -71,7 +71,7 @@ export default function EditTemplateBlocksNotification( { contentRef } ) {
};

const handleDblClick = ( event ) => {
if ( renderingMode === 'template-only' ) {
if ( renderingMode !== 'template-locked' ) {
return;
}
if ( ! event.target.classList.contains( 'is-root-container' ) ) {
Expand Down

1 comment on commit 4fb8952

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 4fb8952.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7191761321
📝 Reported issues:

Please sign in to comment.