Skip to content
Snippets Groups Projects
Commit 63da9e76 authored by chris's avatar chris Committed by john
Browse files

fixes

parent 3c8aa0ff
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class CommentBoxList extends Component { ...@@ -98,7 +98,7 @@ class CommentBoxList extends Component {
if (entry.id === active) isActive = true if (entry.id === active) isActive = true
// get position of annotation in editor // get position of annotation in editor
const annotationEl = document.querySelector('span[data-id="' + entry.id + '"]') const annotationEl = document.querySelector('comment[data-id="' + entry.id + '"]')
if (annotationEl) { if (annotationEl) {
annotationTop = (self.hasCssClass(annotationEl.offsetParent, 'sc-isolated-node')) annotationTop = (self.hasCssClass(annotationEl.offsetParent, 'sc-isolated-node'))
......
...@@ -17,7 +17,7 @@ class Notes extends Component { ...@@ -17,7 +17,7 @@ class Notes extends Component {
didMount () { didMount () {
const provider = this.getProvider() const provider = this.getProvider()
this.context.editorSession.onUpdate('document', this.onNotesUpdated, this) this.context.editorSession.onUpdate('document', this.onNotesUpdated, this)
provider.config.miniEditorSession.onUpdate('document', this.saveNotes, this) provider.config.miniEditorSession.onUpdate('', this.saveNotes, this)
} }
initResize (e) { initResize (e) {
......
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