Skip to content

Commit

Permalink
#19 modify onKey action
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Jun 30, 2019
1 parent 5ad4231 commit ee33988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/react-multi-email/ReactMultiEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class ReactMultiEmail extends React.Component<
handleOnKeydown = (e: React.KeyboardEvent<HTMLInputElement>) => {
switch (e.which) {
case 13:
case 9:
e.preventDefault();
break;
case 8:
Expand All @@ -153,6 +154,7 @@ class ReactMultiEmail extends React.Component<
handleOnKeyup = (e: React.KeyboardEvent<HTMLInputElement>) => {
switch (e.which) {
case 13:
case 9:
this.findEmailAddress(e.currentTarget.value, true);
break;
default:
Expand Down

0 comments on commit ee33988

Please sign in to comment.