@lrnwebcomponents/utils
Advanced tools
Comparing version 2.6.21 to 2.7.0
{ | ||
"name": "@lrnwebcomponents/utils", | ||
"version": "2.6.21", | ||
"version": "2.7.0", | ||
"description": "Helper functions to clean up web component data handling.", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
}, | ||
"gitHead": "feb7f30cf51d59343e3d94dcc8d4e761983cca2a" | ||
"gitHead": "e6cd81cbe4a441cffa75ae5b6a4c699a923cd3e8" | ||
} |
@@ -366,3 +366,2 @@ /** | ||
} | ||
/** | ||
@@ -841,3 +840,3 @@ * Convert a node to a HAX element. Hax elements ensure | ||
const result = internalGetShadowSelection(root); | ||
const rs = (result.range && result.range.toString()) || null; | ||
const rs = (result && result.range && result.range.toString()) || null; | ||
if (rs !== null && rs !== initialText) { | ||
@@ -867,3 +866,3 @@ // TODO: sometimes triggers on single-char hack etc | ||
const s = window.getSelection(); | ||
if (!s.containsNode(root.host, true)) { | ||
if (s && !s.containsNode(root.host, true)) { | ||
return { range: null, mode: "none" }; | ||
@@ -870,0 +869,0 @@ } |
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
46655