@react-aria/interactions
Advanced tools
Comparing version 3.0.0-nightly.747 to 3.0.0-nightly.748
@@ -590,3 +590,8 @@ var _react2 = require("react"); | ||
return pressProps; | ||
}, [isDisabled, onPressStart, onPressChange, onPressEnd, onPress, onPressUp, addGlobalListener, preventFocusOnPress, removeGlobalListener]); | ||
}, [isDisabled, onPressStart, onPressChange, onPressEnd, onPress, onPressUp, addGlobalListener, preventFocusOnPress, removeGlobalListener]); // Remove user-select: none in case component unmounts immediately after pressStart | ||
// eslint-disable-next-line arrow-body-style | ||
useEffect(() => { | ||
return () => $ce801cc8e3ff24b95c928e0152c7b7f2$export$restoreTextSelection(); | ||
}, []); | ||
return { | ||
@@ -593,0 +598,0 @@ isPressed: isPressedProp || isPressed, |
@@ -567,3 +567,8 @@ import _react, { useContext, useEffect, useMemo, useRef, useState } from "react"; | ||
return pressProps; | ||
}, [isDisabled, onPressStart, onPressChange, onPressEnd, onPress, onPressUp, addGlobalListener, preventFocusOnPress, removeGlobalListener]); | ||
}, [isDisabled, onPressStart, onPressChange, onPressEnd, onPress, onPressUp, addGlobalListener, preventFocusOnPress, removeGlobalListener]); // Remove user-select: none in case component unmounts immediately after pressStart | ||
// eslint-disable-next-line arrow-body-style | ||
useEffect(() => { | ||
return () => $e17c9db826984f8ab8e5d837bf0b8$export$restoreTextSelection(); | ||
}, []); | ||
return { | ||
@@ -570,0 +575,0 @@ isPressed: isPressedProp || isPressed, |
{ | ||
"name": "@react-aria/interactions", | ||
"version": "3.0.0-nightly.747+423d5686", | ||
"version": "3.0.0-nightly.748+6e9f55a7", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,4 +21,4 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/utils": "3.0.0-nightly.747+423d5686", | ||
"@react-types/shared": "3.0.0-nightly.747+423d5686" | ||
"@react-aria/utils": "3.0.0-nightly.748+6e9f55a7", | ||
"@react-types/shared": "3.0.0-nightly.748+6e9f55a7" | ||
}, | ||
@@ -31,3 +31,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "423d56867ad76a320537f4e3e127ed7b26c13b58" | ||
"gitHead": "6e9f55a7cebf5f61cdd89057f7cc8b00d021d4d7" | ||
} |
@@ -538,2 +538,8 @@ /* | ||
// Remove user-select: none in case component unmounts immediately after pressStart | ||
// eslint-disable-next-line arrow-body-style | ||
useEffect(() => { | ||
return () => restoreTextSelection(); | ||
}, []); | ||
return { | ||
@@ -540,0 +546,0 @@ isPressed: isPressedProp || isPressed, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
395199
4382