diff --git a/src/components/DataEntry/DataEntryTable/NewEntry/index.tsx b/src/components/DataEntry/DataEntryTable/NewEntry/index.tsx index 162fa7f64d..43a8cafe00 100644 --- a/src/components/DataEntry/DataEntryTable/NewEntry/index.tsx +++ b/src/components/DataEntry/DataEntryTable/NewEntry/index.tsx @@ -224,6 +224,10 @@ export default function NewEntry(props: NewEntryProps): ReactElement { const handleCloseVernDialog = (id?: string): void => { if (id !== undefined) { setSelectedDup(id); + } else { + // User closed the dialog without choosing a duplicate entry or new entry. + // Highlight-select the typed vernacular for easy deletion. + vernInput.current?.setSelectionRange(0, vernInput.current.value.length); } setVernOpen(false); };