slate-react 0.145.0 → 0.145.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/editable.d.ts.map +1 -1
- package/dist/index.es.js +6 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +6 -1
- package/dist/slate-react.min.js +1 -1
- package/package.json +1 -1
package/dist/slate-react.js
CHANGED
|
@@ -8473,7 +8473,12 @@
|
|
|
8473
8473
|
}
|
|
8474
8474
|
if (ReactEditor.hasTarget(editor, event.target) && !isEventHandled(event, attributes.onClick) && isDOMNode(event.target)) {
|
|
8475
8475
|
var node = ReactEditor.toSlateNode(editor, event.target);
|
|
8476
|
-
var path
|
|
8476
|
+
var path;
|
|
8477
|
+
try {
|
|
8478
|
+
path = ReactEditor.findPath(editor, node);
|
|
8479
|
+
} catch (_unused) {
|
|
8480
|
+
return;
|
|
8481
|
+
}
|
|
8477
8482
|
// At this time, the Slate document may be arbitrarily different,
|
|
8478
8483
|
// because onClick handlers can change the document before we get here.
|
|
8479
8484
|
// Therefore we must check that this path actually exists,
|