浏览代码

输入类型聚焦光标跳到后面bug修改2299,2300

zhouna 5 年之前
父节点
当前提交
2826d82e14
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/common/components/InlineTag/index.jsx

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

@@ -101,6 +101,7 @@ class InlineTag extends Component {
                       onBlur={this.handleBlur}
                       onInput={this.handleInput}
                       onFocus={this.handleFocus}
+                      onClick={(e)=>{e.stopPropagation();}}
                       onKeyDown={handleEnter}
                       ref={this.$span}>&nbsp;{value||placeholder}</span>
                 <span>{suffix}</span>