Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Select): double onKeyDown
Browse files Browse the repository at this point in the history
潕量 committed Nov 21, 2018
1 parent 17e13cd commit 4b2e1b3
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
@@ -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
@@ -309,7 +309,7 @@ class AutoComplete extends Base {
label,
// extra: arrowNode,
onChange: this.handleChange,
onKeyDown: makeChain(onKeyDown, this.handleTriggerKeyDown)
onKeyDown: this.handleTriggerKeyDown
};

return (

0 comments on commit 4b2e1b3

Please sign in to comment.