fix: Clicking link with blank href should not open new tab

This commit is contained in:
Tom Moor
2020-10-19 08:00:52 -07:00
parent 38a005ed8a
commit 7bee60a337

View File

@ -56,7 +56,7 @@ class Editor extends React.Component<PropsWithRef> {
} }
this.props.history.push(navigateTo); this.props.history.push(navigateTo);
} else { } else if (href) {
window.open(href, "_blank"); window.open(href, "_blank");
} }
}; };