Fix exiting composer while in fullscreen mode.

This commit is contained in:
Alexander Skvortsov 2020-10-30 20:44:52 -04:00
parent bea0f3c05b
commit 339601a8a3

View File

@ -199,7 +199,7 @@ export default class Composer extends Component {
*/
animatePositionChange() {
// When exiting full-screen mode: focus content
if (this.prevPosition === ComposerState.Position.FULLSCREEN) {
if (this.prevPosition === ComposerState.Position.FULLSCREEN && this.state.position === ComposerState.Position.NORMAL) {
this.focus();
return;
}