@react-stately/slider
Advanced tools
Comparing version 3.0.0-nightly.2355 to 3.0.0-nightly.2358
@@ -74,3 +74,8 @@ var { | ||
value = clamp(getRoundedValue(value), thisMin, thisMax); | ||
value = clamp(getRoundedValue(value), thisMin, thisMax); // Do nothing if slider hasn't moved | ||
if (value === values[index]) { | ||
return; | ||
} | ||
const newValues = $bc3294032743285adead374b6f67$var$replaceIndex(values, index, value); | ||
@@ -77,0 +82,0 @@ setValues(newValues); |
@@ -57,3 +57,8 @@ import { useRef, useState } from "react"; | ||
value = clamp(getRoundedValue(value), thisMin, thisMax); | ||
value = clamp(getRoundedValue(value), thisMin, thisMax); // Do nothing if slider hasn't moved | ||
if (value === values[index]) { | ||
return; | ||
} | ||
const newValues = $dcc38d2f5fc04b76254f325fa36d$var$replaceIndex(values, index, value); | ||
@@ -60,0 +65,0 @@ setValues(newValues); |
{ | ||
"name": "@react-stately/slider", | ||
"version": "3.0.0-nightly.2355+63f8d9f8", | ||
"version": "3.0.0-nightly.2358+3ee5685e", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,6 +21,6 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/i18n": "3.0.0-nightly.677+63f8d9f8", | ||
"@react-aria/utils": "3.0.0-nightly.677+63f8d9f8", | ||
"@react-stately/utils": "3.0.0-nightly.677+63f8d9f8", | ||
"@react-types/slider": "3.0.0-nightly.2355+63f8d9f8" | ||
"@react-aria/i18n": "3.0.0-nightly.680+3ee5685e", | ||
"@react-aria/utils": "3.0.0-nightly.680+3ee5685e", | ||
"@react-stately/utils": "3.0.0-nightly.680+3ee5685e", | ||
"@react-types/slider": "3.0.0-nightly.2358+3ee5685e" | ||
}, | ||
@@ -36,3 +36,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "63f8d9f8fcca05aeec4711d3568f0ddd684c748a" | ||
"gitHead": "3ee5685e293447fb1995ddec4c70b56c8e3aaa8e" | ||
} |
@@ -113,2 +113,7 @@ /* | ||
// Do nothing if slider hasn't moved | ||
if (value === values[index]) { | ||
return; | ||
} | ||
const newValues = replaceIndex(values, index, value); | ||
@@ -115,0 +120,0 @@ setValues(newValues); |
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
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
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
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
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
52771
402