Commit 99e121e3 authored by Randall Leeds's avatar Randall Leeds

really fix #53

parent 40ee944a
...@@ -324,6 +324,7 @@ class Hypothesis extends Annotator ...@@ -324,6 +324,7 @@ class Hypothesis extends Annotator
.on 'mouseover', => d3.event.stopPropagation() .on 'mouseover', => d3.event.stopPropagation()
editor.on('hide', => item.remove()) editor.on('hide', => item.remove())
editor.element.find(":input:first").focus()
context = items context = items
...@@ -352,8 +353,7 @@ class Hypothesis extends Annotator ...@@ -352,8 +353,7 @@ class Hypothesis extends Annotator
@editor.element.find('.annotator-listing').empty() @editor.element.find('.annotator-listing').empty()
.append(excerpt) .append(excerpt)
.append(item) .append(item)
.find(":input:first").focus()
@element.find(":input:first").focus()
d3.select(@viewer.element.get(0)).datum(null) d3.select(@viewer.element.get(0)).datum(null)
this.showSidebar() this.showSidebar()
......
Markdown is supported
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