Skip to content

Commit

Permalink
fix(Tag): add keyboard events
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Nov 9, 2018
1 parent 1eb2043 commit 10a7dc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/Tag/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ type TagProps = {|
onMouseOut?: (event?: SyntheticMouseEvent) => void,
onMouseOver?: (event?: SyntheticMouseEvent) => void,
onMouseUp?: (event?: SyntheticMouseEvent) => void,
onKeyUp?: (event?: SyntheticKeyboardEvent) => void,
onKeyDown?: (event?: SyntheticKeyboardEvent) => void,
onSubmit?: () => void,
options?: Array<Object>,
placeholder?: string,
Expand Down Expand Up @@ -55,6 +57,8 @@ const COLLECTED_PROPS = [
'onMouseOut',
'onMouseOver',
'onMouseUp',
'onKeyUp',
'onKeyDown',
'onSubmit',
'options',
'placeholder',
Expand Down
1 change: 1 addition & 0 deletions storybook/__tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4043,6 +4043,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/DateInput default 1`] = `
<div
className="emotion-2 emotion-1"
onClick={[Function]}
onKeyDown={[Function]}
readOnly={false}
>
<input
Expand Down

0 comments on commit 10a7dc8

Please sign in to comment.