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>;
onMouseUp?: React.FormEventHandler<any>;
onMouseDown?: React.FormEventHandler<any>;
onKeyPress?: React.KeyboardEvent<any>;
onKeyDown?: React.KeyboardEvent<any>;
tabIndex?: number;
loading?: boolean | { delay?: number };
disabled?: boolean;

2
components/checkbox/Checkbox.tsx

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

Loading…
Cancel
Save