Преглед изворни кода

现病史双击编辑阻止冒泡1225

zhouna пре 6 година
родитељ
комит
762a35f36e
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/components/RadioDrop/index.jsx

+ 1 - 0
src/components/RadioDrop/index.jsx

@@ -152,6 +152,7 @@ class RadioDrop extends Component{
            onBlur={this.handleEditLabel}
            contentEditable={this.state.editable}
            onDoubleClick={this.handledbClick}
+           onFocus={(e)=>{e.stopPropagation()}}
            onClick={(e)=>this.handleShow(e,true)}
            onkeydown={handleEnter}>
         {value||placeholder}