diff --git a/packages/js/src/structured-data-blocks/faq/components/Question.js b/packages/js/src/structured-data-blocks/faq/components/Question.js
index 7840b5726d2..c54cedb6505 100644
--- a/packages/js/src/structured-data-blocks/faq/components/Question.js
+++ b/packages/js/src/structured-data-blocks/faq/components/Question.js
@@ -332,7 +332,6 @@ export default class Question extends Component {
answer,
} = attributes;
-
return (
diff --git a/packages/js/src/structured-data-blocks/how-to/components/HowTo.js b/packages/js/src/structured-data-blocks/how-to/components/HowTo.js
index 4f30d0b0f99..c2c6af3e680 100644
--- a/packages/js/src/structured-data-blocks/how-to/components/HowTo.js
+++ b/packages/js/src/structured-data-blocks/how-to/components/HowTo.js
@@ -734,8 +734,10 @@ export default class HowTo extends Component {
tagName="p"
className="schema-how-to-description"
value={ attributes.description }
- unstableOnFocus={ this.focusDescription }
onChange={ this.onChangeDescription }
+ onFocus={ this.focusDescription }
+ // The unstableOnFocus prop is added for backwards compatibility with Gutenberg versions <= 15.1 (WordPress 6.2).
+ unstableOnFocus={ this.focusDescription }
placeholder={ __( "Enter a description", "wordpress-seo" ) }
/>
diff --git a/packages/js/src/structured-data-blocks/how-to/components/HowToStep.js b/packages/js/src/structured-data-blocks/how-to/components/HowToStep.js
index 47ec7e181fe..7bdcc32efa7 100644
--- a/packages/js/src/structured-data-blocks/how-to/components/HowToStep.js
+++ b/packages/js/src/structured-data-blocks/how-to/components/HowToStep.js
@@ -314,6 +314,7 @@ export default class HowToStep extends Component {
} = this.props;
const { id, name, text } = step;
+
return (
-
@@ -329,8 +330,10 @@ export default class HowToStep extends Component {
key={ `${ id }-name` }
value={ name }
onChange={ this.onChangeTitle }
- placeholder={ __( "Enter a step title", "wordpress-seo" ) }
+ onFocus={ this.onFocusTitle }
+ // The unstableOnFocus prop is added for backwards compatibility with Gutenberg versions <= 15.1 (WordPress 6.2).
unstableOnFocus={ this.onFocusTitle }
+ placeholder={ __( "Enter a step title", "wordpress-seo" ) }
allowedFormats={ [ "core/italic", "core/strikethrough", "core/link", "core/annotation" ] }
/>
{ isSelected &&