Skip to content

Commit

Permalink
Merge pull request ant-design#6894 from infeng/fix-input-onChange
Browse files Browse the repository at this point in the history
fix onChange ts definition of Input
  • Loading branch information
afc163 authored Jul 19, 2017
2 parents 119d498 + d19bfcb commit 8a9a8c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface InputProps extends AbstractInputProps {
addonAfter?: React.ReactNode;
onPressEnter?: React.FormEventHandler<any>;
onKeyDown?: React.FormEventHandler<any>;
onChange?: React.FormEventHandler<any>;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
onClick?: React.FormEventHandler<any>;
onFocus?: React.FormEventHandler<any>;
onBlur?: React.FormEventHandler<any>;
Expand Down
2 changes: 1 addition & 1 deletion components/input/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface TextAreaProps extends AbstractInputProps {
onPressEnter?: React.FormEventHandler<any>;
}

export type HTMLTextareaProps = React.HTMLProps<HTMLTextAreaElement>;
export type HTMLTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;

export default class TextArea extends React.Component<TextAreaProps & HTMLTextareaProps, any> {
static defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"warning": "~3.0.0"
},
"devDependencies": {
"@types/react": "^15.0.8",
"@types/react": "^15.0.38",
"@types/react-dom": "~0.14.18",
"antd-demo-jest": "^1.3.0",
"antd-tools": "~1.6.0",
Expand Down

0 comments on commit 8a9a8c9

Please sign in to comment.