From 6d3c0238cba8de270cea03bf7f2cf577d166f0bf Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Wed, 11 Mar 2020 20:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E4=B8=AD=E8=84=9A=E6=9C=AC=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/editor/sidebar/ScriptPanel.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ShadowEditor.Web/src/editor/sidebar/ScriptPanel.jsx b/ShadowEditor.Web/src/editor/sidebar/ScriptPanel.jsx index ef0cc24e..0e0ccc93 100644 --- a/ShadowEditor.Web/src/editor/sidebar/ScriptPanel.jsx +++ b/ShadowEditor.Web/src/editor/sidebar/ScriptPanel.jsx @@ -144,8 +144,10 @@ class ScriptPanel extends React.Component { app.addElement(window); } - handleSelect(value, event) { - + handleSelect(value) { + this.setState({ + selected: value + }); } handleClickIcon(value, name) {