Skip to content

Commit

Permalink
Version fix for rc-select. Update docs to add onInputKeyDown (ant-des…
Browse files Browse the repository at this point in the history
  • Loading branch information
danedavid authored and yesmeck committed Dec 13, 2017
1 parent d1568c9 commit 5a94236
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/select/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Select component to select value from options.
| onFocus | Called when focus | function | - |
| onMouseEnter | Called when mouse enter | function | - |
| onMouseLeave | Called when mouse leave | function | - |
| onInputKeyDown | Called when key pressed | function | - |
| onPopupScroll | Called when dropdown scrolls | function | - |
| onSearch | Callback function that is fired when input changed. | function(value: string) | |
| onSelect | Called when a option is selected, the params are option's value (or key) and option instance. | function(value, option) | - |
Expand Down
1 change: 1 addition & 0 deletions components/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface SelectProps extends AbstractSelectProps {
onDeselect?: (value: SelectValue) => any;
onBlur?: () => any;
onFocus?: () => any;
onInputKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
dropdownMatchSelectWidth?: boolean;
optionFilterProp?: string;
labelInValue?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"rc-pagination": "~1.12.4",
"rc-progress": "~2.2.2",
"rc-rate": "~2.3.0",
"rc-select": "~7.3.2",
"rc-select": "~7.5.0",
"rc-slider": "~8.5.0",
"rc-steps": "~3.0.0",
"rc-switch": "~1.6.0",
Expand Down

0 comments on commit 5a94236

Please sign in to comment.