fix: More context menu fixes

This commit is contained in:
Tom Moor
2021-07-05 16:35:46 -04:00
parent f8ffa4e25a
commit 181a20a268
2 changed files with 16 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ type Props = {|
@observer
class DocumentEditor extends React.Component<Props> {
@observable activeLinkEvent: ?MouseEvent;
@observable ref = React.createRef<HTMLDivElement | HTMLInputElement>();
ref = React.createRef<HTMLDivElement | HTMLInputElement>();
focusAtStart = () => {
if (this.props.innerRef.current) {
@@ -110,8 +110,6 @@ class DocumentEditor extends React.Component<Props> {
const normalizedTitle =
!title && readOnly ? document.titleWithDefault : title;
console.log(this.ref.current);
return (
<Flex auto column>
{readOnly ? (