mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fix error on export (#808)
This commit is contained in:
parent
4e489bfb6d
commit
74add8661a
1 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,10 @@ export class ProjectName extends Component<Props> {
|
||||||
e.currentTarget.blur();
|
e.currentTarget.blur();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
private makeEditable = (editable: HTMLSpanElement) => {
|
private makeEditable = (editable: HTMLSpanElement | null) => {
|
||||||
|
if (!editable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
editable.contentEditable = "plaintext-only";
|
editable.contentEditable = "plaintext-only";
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Add table
Reference in a new issue