mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
feat(planner): ask before a stray click throws away an edited place or booking (#2253)
This commit is contained in:
@@ -995,6 +995,8 @@ export default function PlaceFormModal(props: PlaceFormModalProps) {
|
||||
labelledBy={titleId}
|
||||
width={width}
|
||||
align="top"
|
||||
// A stray click beside the editor asks before the typing is lost (#2253).
|
||||
discardGuard={{ form, files: S.pendingFiles.length }}
|
||||
onPaste={S.handlePaste}
|
||||
header={header}
|
||||
footer={footer}
|
||||
|
||||
Reference in New Issue
Block a user