From 9902f441f6aa44587c9924384d68ca70cdfb77b2 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Tue, 6 Oct 2020 15:36:17 -0400 Subject: [PATCH] Fix rotation issue --- packages/block-library/src/missing/edit.native.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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.