mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Fix exiting composer while in fullscreen mode.
This commit is contained in:
@@ -199,7 +199,7 @@ export default class Composer extends Component {
|
|||||||
*/
|
*/
|
||||||
animatePositionChange() {
|
animatePositionChange() {
|
||||||
// When exiting full-screen mode: focus content
|
// 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();
|
this.focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user