mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 05:01:17 +02:00
fix duplicate declaration
This commit is contained in:
@@ -373,10 +373,10 @@ function AfterPlugin() {
|
|||||||
// has fired in a node: https://github.com/facebook/react/issues/11379.
|
// has fired in a node: https://github.com/facebook/react/issues/11379.
|
||||||
// Until this is fixed in React, we dispatch a mouseup event on that
|
// Until this is fixed in React, we dispatch a mouseup event on that
|
||||||
// DOM node, since that will make it go back to normal.
|
// DOM node, since that will make it go back to normal.
|
||||||
const node = document.getNode(target.focusKey)
|
const focusNode = document.getNode(target.focusKey)
|
||||||
const el = findDOMNode(node)
|
const el = findDOMNode(focusNode)
|
||||||
if (!el) return
|
if (!el) return
|
||||||
|
|
||||||
el.dispatchEvent(new MouseEvent('mouseup', {
|
el.dispatchEvent(new MouseEvent('mouseup', {
|
||||||
view: window,
|
view: window,
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
|
Reference in New Issue
Block a user