diff --git a/blocks/library/block/edit-panel/index.js b/blocks/library/block/edit-panel/index.js index 134fd25c3b0ceb..88b733d0ce63df 100644 --- a/blocks/library/block/edit-panel/index.js +++ b/blocks/library/block/edit-panel/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { Button } from '@wordpress/components'; +import { Button, withInstanceId } from '@wordpress/components'; import { Component, Fragment, createRef } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { keycodes } from '@wordpress/utils'; @@ -55,7 +55,7 @@ class SharedBlockEditPanel extends Component { } render() { - const { isEditing, title, isSaving, onEdit, onCancel } = this.props; + const { isEditing, title, isSaving, onEdit, onCancel, instanceId } = this.props; return ( @@ -76,6 +76,12 @@ class SharedBlockEditPanel extends Component { ) } { ( isEditing || isSaving ) && (
+