mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 22:43:41 +08:00
Fix exiting composer while in fullscreen mode.
This commit is contained in:
parent
bea0f3c05b
commit
339601a8a3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user