@react-aria/interactions 3.20.0 → 3.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/interactions",
3
- "version": "3.20.0",
3
+ "version": "3.20.1",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -22,8 +22,8 @@
22
22
  "url": "https://github.com/adobe/react-spectrum"
23
23
  },
24
24
  "dependencies": {
25
- "@react-aria/ssr": "^3.9.0",
26
- "@react-aria/utils": "^3.22.0",
25
+ "@react-aria/ssr": "^3.9.1",
26
+ "@react-aria/utils": "^3.23.0",
27
27
  "@react-types/shared": "^3.22.0",
28
28
  "@swc/helpers": "^0.5.0"
29
29
  },
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "9ce2f674eab2cc8912800d3162dcf00a1ce94274"
36
+ "gitHead": "86b38c87868ce7f262e0df905e5ac4eb2653791d"
37
37
  }
@@ -84,9 +84,9 @@ export function restoreTextSelection(target?: Element) {
84
84
  // If not iOS, restore the target's original user-select if any
85
85
  // Ignore state since it doesn't apply for non iOS
86
86
  if (target && modifiedElementMap.has(target)) {
87
- let targetOldUserSelect = modifiedElementMap.get(target);
87
+ let targetOldUserSelect = modifiedElementMap.get(target) as string;
88
88
 
89
- if (target.style.userSelect === 'none' && targetOldUserSelect) {
89
+ if (target.style.userSelect === 'none') {
90
90
  target.style.userSelect = targetOldUserSelect;
91
91
  }
92
92