mirror of
https://github.com/flarum/core.git
synced 2025-08-09 01:46:35 +02:00
Avoid JSX to workaround Mithril 0.1.x weirdness. closes flarum/core#975
This commit is contained in:
@@ -41,8 +41,11 @@ export default class CommentPost extends Post {
|
||||
}
|
||||
|
||||
content() {
|
||||
// Note: we avoid using JSX for the <ul> below because it results in some
|
||||
// weirdness in Mithril.js 0.1.x (see flarum/core#975). This workaround can
|
||||
// be reverted when we upgrade to Mithril 1.0.
|
||||
return super.content().concat([
|
||||
<header className="Post-header"><ul>{listItems(this.headerItems().toArray())}</ul></header>,
|
||||
<header className="Post-header">{m('ul', listItems(this.headerItems().toArray()))}</header>,
|
||||
<div className="Post-body">
|
||||
{this.isEditing()
|
||||
? <div className="Post-preview" config={this.configPreview.bind(this)}/>
|
||||
|
Reference in New Issue
Block a user