From 8a81d73ec14e9ccc724e70fdb52749765ea5b8eb Mon Sep 17 00:00:00 2001 From: AlbertHilb Date: Thu, 30 Mar 2017 16:22:09 +0200 Subject: [PATCH] Fix mismatched event parameter. (#694) --- src/plugins/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/core.js b/src/plugins/core.js index a6c817204..3b87d6b12 100644 --- a/src/plugins/core.js +++ b/src/plugins/core.js @@ -105,7 +105,7 @@ function Plugin(options = {}) { // is replaced. But the `select` event for this change doesn't fire until after // the `beforeInput` event, even though the native selection is updated. So we // need to manually adjust the selection to be in sync. (03/18/2017) - const window = getWindow(event.target) + const window = getWindow(e.target) const native = window.getSelection() const { anchorNode, anchorOffset, focusNode, focusOffset } = native const anchorPoint = getPoint(anchorNode, anchorOffset, state, editor)