Skip to content

Commit

Permalink
fix(Select): double onKeyDown
Browse files Browse the repository at this point in the history
  • Loading branch information
潕量 committed Nov 21, 2018
1 parent 17e13cd commit 4b2e1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/select/demo/combobox.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ const onChange = (v) => {
console.log(v);
};

ReactDOM.render(<Select.AutoComplete style={{width: 300}} onChange={onChange} dataSource={dataSource} />, mountNode);
ReactDOM.render(<Select.AutoComplete style={{width: 300}} onChange={onChange} onKeyDown={()=>console.log(/onkeyodwn/)} dataSource={dataSource} />, mountNode);
````
2 changes: 1 addition & 1 deletion src/select/auto-complete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class AutoComplete extends Base {
label,
// extra: arrowNode,
onChange: this.handleChange,
onKeyDown: makeChain(onKeyDown, this.handleTriggerKeyDown)
onKeyDown: this.handleTriggerKeyDown
};

return (
Expand Down

0 comments on commit 4b2e1b3

Please sign in to comment.