Skip to content

Commit d1775eb

Browse files
committed
feat(editor2): insert soft checkpoint on blur of text inputs
1 parent 8ec8fc5 commit d1775eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/components/editor2/InfoEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const InfoEditor = memo(({ className }: InfoEditorProps) => {
6262
}
6363
})
6464
}}
65+
onBlur={() => edit()}
6566
/>
6667
<FieldError path="doc.title" />
6768
</FormGroup>
@@ -87,6 +88,7 @@ export const InfoEditor = memo(({ className }: InfoEditorProps) => {
8788
}
8889
})
8990
}}
91+
onBlur={() => edit()}
9092
/>
9193
<FieldError path="doc.details" />
9294
</FormGroup>

src/components/editor2/action/ActionItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ export const ActionItem: FC<ActionItemProps> = memo(
615615
}
616616
})
617617
}
618+
} else {
619+
edit()
618620
}
619621
}}
620622
/>

0 commit comments

Comments
 (0)