1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Fix: extend Component in ReplyPlaceholderComponent

This commit is contained in:
Alexander Skvortsov
2020-08-09 23:15:38 -04:00
committed by Franz Liedke
parent 6c9971eeba
commit 7e5b40c532

View File

@@ -1,11 +1,15 @@
/*global s9e*/
export default class ReplyPlaceholderPreview {
import Component from "../../common/Component";
export default class ReplyPlaceholderPreview extends Component {
view() {
return <div className="Post-body" />;
}
oncreate(vnode) {
super.oncreate(vnode);
// Every 50ms, if the composer content has changed, then update the post's
// body with a preview.
let preview;