diff --git a/packages/block-library/src/missing/edit.native.js b/packages/block-library/src/missing/edit.native.js index ad82ef47970c52..0ec9e09f86d5ef 100644 --- a/packages/block-library/src/missing/edit.native.js +++ b/packages/block-library/src/missing/edit.native.js @@ -31,6 +31,7 @@ export class UnsupportedBlockEdit extends Component { super( props ); this.state = { showHelp: false }; this.toggleSheet = this.toggleSheet.bind( this ); + this.closeSheet = this.closeSheet.bind( this ); this.requestFallback = this.requestFallback.bind( this ); } @@ -40,6 +41,12 @@ export class UnsupportedBlockEdit extends Component { } ); } + closeSheet() { + this.setState( { + showHelp: false, + } ); + } + componentWillUnmount() { if ( this.timeout ) { clearTimeout( this.timeout ); @@ -123,7 +130,7 @@ export class UnsupportedBlockEdit extends Component { { if ( this.state.sendFallbackMessage ) { // On iOS, onModalHide is called when the controller is still part of the hierarchy.