Skip to content

Commit 873c5f0

Browse files
committed
fix(dispatcher): reset notify call but extend with syncSelection call
1 parent aa426ec commit 873c5f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dispatcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export default class Dispatcher {
8484
this.$document
8585
.on('focus.editable', selector, function (event) {
8686
if (this.getAttribute(config.pastingAttribute)) return
87-
const selection = self.selectionWatcher.getFreshSelection()
88-
self.notify('focus', this, selection)
87+
self.selectionWatcher.syncSelection()
88+
self.notify('focus', this)
8989
})
9090

9191
.on('blur.editable', selector, function (event) {

0 commit comments

Comments
 (0)