aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/FootnoteView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-27 22:04:09 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-27 22:04:09 -0400
commit26e683056cddcbe8f90547c77519daa15c37518d (patch)
tree7b605970f3185701d62b7ddca7604e6638d5bc4a /src/client/util/FootnoteView.tsx
parentb783500a62788785bbb67bcfb67b355a80014c67 (diff)
fixed warnings. fixed DashFieldView
Diffstat (limited to 'src/client/util/FootnoteView.tsx')
-rw-r--r--src/client/util/FootnoteView.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/util/FootnoteView.tsx b/src/client/util/FootnoteView.tsx
index a775a9355..ee21fb765 100644
--- a/src/client/util/FootnoteView.tsx
+++ b/src/client/util/FootnoteView.tsx
@@ -18,13 +18,13 @@ interface IFootnoteView {
export class FootnoteView extends React.Component<IFootnoteView> {
_innerView: any;
- _node: any
+ _node: any;
constructor(props: IFootnoteView) {
- super(props)
- let node = this.props.node;
+ super(props);
+ const node = this.props.node;
const outerView = this.props.outerView;
- let _innerView = this.props.innerView;
+ const _innerView = this.props.innerView;
const getPos = this.props.getPos;
}
@@ -77,7 +77,7 @@ export class FootnoteView extends React.Component<IFootnoteView> {
if (this.props.outerView.hasFocus()) this.props.innerView.focus();
}) as any
}
- }))
+ }));
setTimeout(() => this.props.innerView && this.props.innerView.docView.setSelection(0, 0, this.props.innerView.root, true), 0);
}
@@ -124,7 +124,7 @@ export class FootnoteView extends React.Component<IFootnoteView> {
}
toggle = (e: any) => {
- e.preventDefault()
+ e.preventDefault();
if (this.props.innerView) this.close();
else {
this.open();
@@ -157,6 +157,6 @@ export class FootnoteView extends React.Component<IFootnoteView> {
</div >
</div>
- )
+ );
}
}