Просмотр исходного кода

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

zhouna 5 лет назад
Родитель
Сommit
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>