Skip to content

Commit

Permalink
[DataEntryTable] Use preventDefault in TextField
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 18, 2022
1 parent a19dd6a commit 12e4ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default class GlossWithSuggestions extends React.Component<GlossWithSugge
)}
onKeyPress={(e: React.KeyboardEvent) => {
if (e.key === Key.Enter || e.key === Key.Tab) {
e.preventDefault();
this.props.handleEnterAndTab(e);
}
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class VernWithSuggestions extends React.Component<VernWithSuggest
}}
onKeyPress={(e: React.KeyboardEvent) => {
if (e.key === Key.Enter || e.key === Key.Tab) {
e.preventDefault();
this.props.handleEnterAndTab(e);
}
}}
Expand Down

0 comments on commit 12e4ca5

Please sign in to comment.