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" ) } />