mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
Work around Mithril bug
This commit is contained in:
parent
04c862f5a3
commit
a79dcf69b2
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"name": "flarum",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "2.1.3",
|
"jquery": "2.1.3",
|
||||||
"jquery.hotkeys": "jeresig/jquery.hotkeys#0.2.0",
|
"jquery.hotkeys": "jeresig/jquery.hotkeys#0.2.0",
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
"spin.js": "~2.0.1",
|
"spin.js": "~2.0.1",
|
||||||
"moment": "~2.8.4",
|
"moment": "~2.8.4",
|
||||||
"color-thief": "v2.0",
|
"color-thief": "v2.0",
|
||||||
"mithril": "0.2.0",
|
"mithril": "lhorie/mithril.js#next",
|
||||||
"loader.js": "~3.2.1"
|
"loader.js": "~3.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,7 +228,8 @@ class Composer extends Component {
|
||||||
if ([Composer.PositionEnum.MINIMIZED, Composer.PositionEnum.HIDDEN].indexOf(this.position()) !== -1) {
|
if ([Composer.PositionEnum.MINIMIZED, Composer.PositionEnum.HIDDEN].indexOf(this.position()) !== -1) {
|
||||||
this.position(Composer.PositionEnum.NORMAL);
|
this.position(Composer.PositionEnum.NORMAL);
|
||||||
}
|
}
|
||||||
this.render();
|
// work around https://github.com/lhorie/mithril.js/issues/603
|
||||||
|
setTimeout(() => this.render());
|
||||||
}
|
}
|
||||||
|
|
||||||
hide() {
|
hide() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user