@zag-js/text-selection
Advanced tools
Comparing version 0.0.0-dev-20230529122041 to 0.0.0-dev-20230529204626
@@ -68,3 +68,3 @@ "use strict"; | ||
if (target && elementMap.has(target)) { | ||
let prevUserSelect = elementMap.get(target); | ||
const prevUserSelect = elementMap.get(target); | ||
if (target.style.userSelect === "none") { | ||
@@ -71,0 +71,0 @@ target.style.userSelect = prevUserSelect ?? ""; |
{ | ||
"name": "@zag-js/text-selection", | ||
"version": "0.0.0-dev-20230529122041", | ||
"version": "0.0.0-dev-20230529204626", | ||
"description": "", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/dom-query": "0.0.0-dev-20230529122041" | ||
"@zag-js/dom-query": "0.0.0-dev-20230529204626" | ||
}, | ||
@@ -34,0 +34,0 @@ "module": "dist/index.mjs", |
@@ -7,3 +7,3 @@ import { isIos, nextTick, raf } from "@zag-js/dom-query" | ||
let userSelect = "" | ||
let elementMap = new WeakMap<HTMLElement, string>() | ||
const elementMap = new WeakMap<HTMLElement, string>() | ||
@@ -60,3 +60,3 @@ export type DisableTextSelectionOptions<T = MaybeElement> = { | ||
if (target && elementMap.has(target)) { | ||
let prevUserSelect = elementMap.get(target) | ||
const prevUserSelect = elementMap.get(target) | ||
@@ -63,0 +63,0 @@ if (target.style.userSelect === "none") { |
Sorry, the diff of this file is not supported yet
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
11045
+ Added@zag-js/dom-query@0.0.0-dev-20230529204626(transitive)
- Removed@zag-js/dom-query@0.0.0-dev-20230529122041(transitive)