diff --git a/src/pyj/read_book/selection_bar.pyj b/src/pyj/read_book/selection_bar.pyj index 096fc04237..a7d7bf0bc5 100644 --- a/src/pyj/read_book/selection_bar.pyj +++ b/src/pyj/read_book/selection_bar.pyj @@ -644,8 +644,12 @@ class SelectionBar: ed.style.left = x + 'px' ed.style.top = y + 'px' - def hide_editor(self, apply): - pass # TODO: Implement this + def hide_editor(self, apply_changes): + if not apply_changes: + self.state = WAITING + self.update_position() + return + # TODO: Implement this def editor_container_clicked(self, ev): ev.stopPropagation(), ev.preventDefault()