소스 검색

输入组件placeholder bug修改2532

zhouna 5 년 전
부모
커밋
5f6b937d50
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/common/components/InlineTag/index.jsx

+ 1 - 0
src/common/components/InlineTag/index.jsx

@@ -57,6 +57,7 @@ class InlineTag extends Component {
         value:''
       });
       e.target.innerHTML = placeholder;
+      return;
     }
     if(boxMark==='1'&&this.state.over){     //超过字数限制,显示输入前的值
       e.target.innerHTML = value||'';