From 540dfd40a2039c0a78788f9a78d58c51057ba79e Mon Sep 17 00:00:00 2001 From: "D. Ror" Date: Thu, 18 Aug 2022 10:42:09 -0400 Subject: [PATCH] [DataEntryTable] Use preventDefault in TextField --- .../DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx | 1 + .../DataEntryTable/EntryCellComponents/VernWithSuggestions.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx b/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx index 64d2210a6f..d948434c74 100644 --- a/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx +++ b/src/components/DataEntry/DataEntryTable/EntryCellComponents/GlossWithSuggestions.tsx @@ -71,6 +71,7 @@ export default class GlossWithSuggestions extends React.Component { if (e.key === Key.Enter || e.key === Key.Tab) { + e.preventDefault(); this.props.handleEnterAndTab(e); } }} diff --git a/src/components/DataEntry/DataEntryTable/EntryCellComponents/VernWithSuggestions.tsx b/src/components/DataEntry/DataEntryTable/EntryCellComponents/VernWithSuggestions.tsx index e175417494..706b2e489a 100644 --- a/src/components/DataEntry/DataEntryTable/EntryCellComponents/VernWithSuggestions.tsx +++ b/src/components/DataEntry/DataEntryTable/EntryCellComponents/VernWithSuggestions.tsx @@ -54,6 +54,7 @@ export default class VernWithSuggestions extends React.Component { if (e.key === Key.Enter || e.key === Key.Tab) { + e.preventDefault(); this.props.handleEnterAndTab(e); } }}