Skip to content

Commit

Permalink
Fix error on export (excalidraw#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 authored Feb 22, 2020
1 parent 4e489bf commit 74add86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ProjectName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export class ProjectName extends Component<Props> {
e.currentTarget.blur();
}
};
private makeEditable = (editable: HTMLSpanElement) => {
private makeEditable = (editable: HTMLSpanElement | null) => {
if (!editable) {
return;
}
try {
editable.contentEditable = "plaintext-only";
} catch {
Expand Down

0 comments on commit 74add86

Please sign in to comment.