mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Fix bug where switching composer component would lead to incorrect rendering
This commit is contained in:
@@ -133,8 +133,6 @@ class Composer extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render(anchorToBottom) {
|
render(anchorToBottom) {
|
||||||
if (this.position() === this.oldPosition) { this.component.focus(); return; }
|
|
||||||
|
|
||||||
var $composer = this.$().stop(true);
|
var $composer = this.$().stop(true);
|
||||||
var oldHeight = $composer.is(':visible') ? $composer.outerHeight() : 0;
|
var oldHeight = $composer.is(':visible') ? $composer.outerHeight() : 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user