From c4aa6fa6e50e74b05024624b3d6d18a830f70dc8 Mon Sep 17 00:00:00 2001 From: ashawkey <963113090@qq.com> Date: Thu, 25 Jun 2020 16:46:04 +0800 Subject: [PATCH] bugfix --- src/UserAction.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/UserAction.js b/src/UserAction.js index 3befbb9..82f2c08 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -2,6 +2,7 @@ import React, {Component, PureComponent} from 'react'; import {API_BASE, SafeTextarea, PromotionBar, HighlightedMarkdown} from './Common'; import {MessageViewer} from './Message'; import {LoginPopup} from './infrastructure/widgets'; +import {ColorPicker} from './color_picker'; import {ConfigUI} from './Config'; import fixOrientation from 'fix-orientation'; import copy from 'copy-to-clipboard'; @@ -399,6 +400,7 @@ export class ReplyForm extends Component { this.on_change_bound=this.on_change.bind(this); this.area_ref=this.props.area_ref||React.createRef(); this.global_keypress_handler_bound=this.global_keypress_handler.bind(this); + this.color_picker=new ColorPicker(); } global_keypress_handler(e) { @@ -471,14 +473,15 @@ export class ReplyForm extends Component { } render() { + let color_picker = new ColorPicker(); return (