mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Fix bug where switching composer component would lead to incorrect rendering
This commit is contained in:
parent
0b1ff22168
commit
78efdc1d09
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user