Commit c3743d14 authored by 田翔's avatar 田翔

fix: 描述控件重新编辑报错问题

parent 4a02964f
{
"name": "panda-xform",
"version": "6.9.23",
"description": "6.9.23 表单支持默认隐藏",
"version": "6.9.24",
"description": "6.9.24 描述控件重新编辑报错问题",
"keywords": [
"panda-xform"
],
......
......@@ -36,6 +36,13 @@ const ContentHTML = (props) => {
}
}, [editor])
useEffect(() => {
if (!visible && editor) {
editor.destroy()
setEditor(null)
}
}, [visible])
return (
<div>
<TextArea value={value} onClick={() => inputClick()} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment