mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 23:29:57 +08:00
Make the invoker responsible for positioning the composer cursor
This commit is contained in:
@ -133,7 +133,7 @@ class Composer extends Component {
|
||||
}
|
||||
|
||||
render(anchorToBottom) {
|
||||
if (this.position() === this.oldPosition) { return; }
|
||||
if (this.position() === this.oldPosition) { this.component.focus(); return; }
|
||||
|
||||
var $composer = this.$().stop(true);
|
||||
var oldHeight = $composer.is(':visible') ? $composer.outerHeight() : 0;
|
||||
|
Reference in New Issue
Block a user