Browse Source

firefox 回访时间不显示且不能编辑(2326)

zhangxc 5 năm trước cách đây
mục cha
commit
16415dce36

+ 1 - 1
src/components/Treat/FollowUp/Textarea/index.jsx

@@ -42,7 +42,7 @@ class Textarea extends Component {
   componentDidMount(){
     const {value} = this.props;
     if(value && value.trim()){
-      this.$dom.current.innerText = value
+      this.$dom.current.innerHTML = value
       // this.$dom.current.focus()
       // this.$dom.current.innerText ? (this.$dom.current.innerText = value) : (this.$dom.current.innerHTML = value)
     //   this.$dom.current.nextSibling.innerText?(this.$dom.current.nextSibling.innerText = ''):(this.$dom.current.nextSibling.innerHTML = '')

+ 2 - 1
src/components/Treat/FollowUp/Textarea/index.less

@@ -5,5 +5,6 @@
     min-width: 30px;
     text-align: center;
     margin-right: 5px;
-    line-height: 20px
+    line-height: 20px;
+    min-height: 20px;
 }