diff --git a/packages/tldraw/src/components/Primitives/AlertDialog/FilenameDialog.tsx b/packages/tldraw/src/components/Primitives/AlertDialog/FilenameDialog.tsx index 094bcefaa..d06092da5 100644 --- a/packages/tldraw/src/components/Primitives/AlertDialog/FilenameDialog.tsx +++ b/packages/tldraw/src/components/Primitives/AlertDialog/FilenameDialog.tsx @@ -16,7 +16,7 @@ export const FilenameDialog = ({ isOpen, onClose }: FilenameDialogProps) => { const app = useTldrawApp() const container = useContainer() const intl = useIntl() - const [filename, setFilename] = React.useState('') + const [filename, setFilename] = React.useState(app.document.name) const handleChange = React.useCallback((event: React.ChangeEvent) => { const value = event.target.value.trimStart() @@ -63,7 +63,9 @@ export const FilenameDialog = ({ isOpen, onClose }: FilenameDialogProps) => {