Fix error on export (#808)

This commit is contained in:
Jed Fox 2020-02-22 10:46:12 -05:00 committed by GitHub
parent 4e489bfb6d
commit 74add8661a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {