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 }) => {
const allCommentsTop = [];
let panelWrapper = {};
let panelWrapperHeight = {};
let activeComment = null;
if (main) {
WaxSurface = main.dom.getBoundingClientRect();
......@@ -44,8 +43,7 @@ export default ({ area }) => {
const id =
markNode instanceof Mark ? markNode.attrs.id : markNode.node.attrs.id;
if (activeView)
activeComment = commentPlugin.getState(activeView.state).comment;
const activeComment = commentPlugin.getState(activeView.state).comment;
let isActive = false;
if (activeComment && id === activeComment.attrs.id) isActive = true;
......
// TODO Write the node in WaxSchema
const footnote = {
group: 'inline',
content: 'block*',
content: 'inline*',
inline: true,
atom: true,
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