Commit c3743d14 authored by 田翔's avatar 田翔

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

parent 4a02964f
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.9.23", "version": "6.9.24",
"description": "6.9.23 表单支持默认隐藏", "description": "6.9.24 描述控件重新编辑报错问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -36,6 +36,13 @@ const ContentHTML = (props) => { ...@@ -36,6 +36,13 @@ const ContentHTML = (props) => {
} }
}, [editor]) }, [editor])
useEffect(() => {
if (!visible && editor) {
editor.destroy()
setEditor(null)
}
}, [visible])
return ( return (
<div> <div>
<TextArea value={value} onClick={() => inputClick()} /> <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