Skip to content
Snippets Groups Projects
Commit a2634a95 authored by chris's avatar chris
Browse files

fix

parent a2f73361
No related branches found
No related tags found
1 merge request!168Fix rerender notes
...@@ -29,7 +29,6 @@ export default ({ area }) => { ...@@ -29,7 +29,6 @@ export default ({ area }) => {
const allCommentsTop = []; const allCommentsTop = [];
let panelWrapper = {}; let panelWrapper = {};
let panelWrapperHeight = {}; let panelWrapperHeight = {};
let activeComment = null;
if (main) { if (main) {
WaxSurface = main.dom.getBoundingClientRect(); WaxSurface = main.dom.getBoundingClientRect();
...@@ -44,8 +43,7 @@ export default ({ area }) => { ...@@ -44,8 +43,7 @@ export default ({ area }) => {
const id = const id =
markNode instanceof Mark ? markNode.attrs.id : markNode.node.attrs.id; markNode instanceof Mark ? markNode.attrs.id : markNode.node.attrs.id;
if (activeView) const activeComment = commentPlugin.getState(activeView.state).comment;
activeComment = commentPlugin.getState(activeView.state).comment;
let isActive = false; let isActive = false;
if (activeComment && id === activeComment.attrs.id) isActive = true; if (activeComment && id === activeComment.attrs.id) isActive = true;
......
// TODO Write the node in WaxSchema // TODO Write the node in WaxSchema
const footnote = { const footnote = {
group: 'inline', group: 'inline',
content: 'block*', content: 'inline*',
inline: true, inline: true,
atom: true, atom: true,
attrs: { attrs: {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment