prosemirror-view
Advanced tools
Comparing version 1.28.1 to 1.28.2
{ | ||
"name": "prosemirror-view", | ||
"version": "1.28.1", | ||
"version": "1.28.2", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -422,3 +422,8 @@ import {DOMSerializer, Fragment, Mark, Node, ParseRule} from "prosemirror-model" | ||
try { | ||
if (anchor != head) domSel.extend(headDOM.node, headDOM.offset) | ||
if (anchor != head) { | ||
// This can crash on Safari if the editor is hidden, and | ||
// there was no selection. (#1308) | ||
try { domSel.extend(headDOM.node, headDOM.offset) } | ||
catch (_) {} | ||
} | ||
domSelExtended = true | ||
@@ -425,0 +430,0 @@ } catch (err) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
757282
16252