exit dialog when pressing enter (#906)

This commit is contained in:
Judicael 2022-08-16 00:12:37 +03:00 committed by GitHub
parent 1ea10ca865
commit 6dccf26c43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,7 @@ export function PageOptionsDialog({ page, onOpen, onClose }: PageOptionsDialogPr
} else { } else {
rInitialName.current = rCurrentName.current rInitialName.current = rCurrentName.current
app.renamePage(page.id, rCurrentName.current.trim()) app.renamePage(page.id, rCurrentName.current.trim())
setIsOpen(false)
} }
break break