Browse Source

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

zhouna 5 years ago
parent
commit
2826d82e14
1 changed files with 1 additions and 0 deletions
  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>