Skip to content

Commit

Permalink
fix(Input): fix textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxiongdi committed Jul 2, 2019
1 parent 9ceb94a commit ac270ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/input/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export interface TextAreaProps extends HTMLAttributesWeak {
/**
* 发生改变的时候触发的回调
*/
onChange?: (value: string, e: React.ChangeEvent<HTMLInputElement>) => void;
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;

/**
* 键盘按下的时候触发的回调
*/
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>, opts: {}) => void;
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>, opts: {}) => void;

/**
* 禁用状态
Expand Down

0 comments on commit ac270ea

Please sign in to comment.