diff --git a/src/features/database/DataView.tsx b/src/features/database/DataView.tsx
index 11423947f..ec98a55e5 100644
--- a/src/features/database/DataView.tsx
+++ b/src/features/database/DataView.tsx
@@ -20,6 +20,7 @@ import {
type LocalSort,
} from "./resultView";
import { openDialog } from "./store";
+import { hasLineBreak } from "./cellPreview";
import styles from "./Database.module.css";
import { tx } from "@/platform/i18n";
@@ -346,17 +347,30 @@ function RecordField(props: { column: GridColumn; cell: Cell; editable: boolean;
{c.name}
{c.type && c.type !== "NULL" && {c.type}}
- " : undefined}
- onChange={(e) => setText(e.target.value)}
- onBlur={commit}
- onKeyDown={(e) => {
- if (e.key === "Enter") commit();
- }}
- />
+ {hasLineBreak(props.cell ?? "") ? (
+ // A single-line field would drop the line breaks on the first edit.
+