Browse Source

onKeyPress and onKeyDown typings (#9316)

* Update Checkbox.tsx

* Update button.tsx
pull/9317/head
Yury Kozyrev 7 years ago
committed by Wei Zhu
parent
commit
1e92ff8efd
  1. 2
      components/button/button.tsx
  2. 2
      components/checkbox/Checkbox.tsx

2
components/button/button.tsx

@ -47,6 +47,8 @@ export interface ButtonProps {
onClick?: React.FormEventHandler<any>; onClick?: React.FormEventHandler<any>;
onMouseUp?: React.FormEventHandler<any>; onMouseUp?: React.FormEventHandler<any>;
onMouseDown?: React.FormEventHandler<any>; onMouseDown?: React.FormEventHandler<any>;
onKeyPress?: React.KeyboardEvent<any>;
onKeyDown?: React.KeyboardEvent<any>;
tabIndex?: number; tabIndex?: number;
loading?: boolean | { delay?: number }; loading?: boolean | { delay?: number };
disabled?: boolean; disabled?: boolean;

2
components/checkbox/Checkbox.tsx

@ -15,6 +15,8 @@ export interface AbstractCheckboxProps {
onChange?: React.ChangeEventHandler<HTMLInputElement>; onChange?: React.ChangeEventHandler<HTMLInputElement>;
onMouseEnter?: React.MouseEventHandler<any>; onMouseEnter?: React.MouseEventHandler<any>;
onMouseLeave?: React.MouseEventHandler<any>; onMouseLeave?: React.MouseEventHandler<any>;
onKeyPress?: React.KeyboardEvent<any>;
onKeyDown?: React.KeyboardEvent<any>;
value?: any; value?: any;
tabIndex?: number; tabIndex?: number;
name?: string; name?: string;

Loading…
Cancel
Save