diff --git a/.all-contributorsrc b/.all-contributorsrc index 955f1884a16a..3d2b75b72faf 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1476,11 +1476,11 @@ "name": "jesnajoseijk", "avatar_url": "https://avatars.githubusercontent.com/u/38346258?v=4", "profile": "https://github.com/jesnajoseijk", - "contributions": [ + "contributions": [ "code" ] }, - { + { "login": "Jawahars", "name": "Jawahar S", "avatar_url": "https://avatars.githubusercontent.com/u/4353146?v=4", @@ -1506,6 +1506,15 @@ "contributions": [ "code" ] + }, + { + "login": "aninaantony", + "name": "Anina Antony", + "avatar_url": "https://avatars.githubusercontent.com/u/164350784?v=4", + "profile": "https://github.com/aninaantony", + "contributions": [ + "code" + ] } ], "commitConvention": "none" diff --git a/README.md b/README.md index d24fda04b38c..b1ecf063a618 100644 --- a/README.md +++ b/README.md @@ -283,12 +283,12 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our
Joseph Schultz

💻
anjaly0606

💻
jesnajoseijk

💻 -
Jawahar S

💻
Holly Springsteen

💻
Nikhil Tomar

💻 +
Anina Antony

💻 diff --git a/packages/react/src/components/Slider/Slider.tsx b/packages/react/src/components/Slider/Slider.tsx index 351c6f120297..a10ae0c24153 100644 --- a/packages/react/src/components/Slider/Slider.tsx +++ b/packages/react/src/components/Slider/Slider.tsx @@ -1037,7 +1037,7 @@ class Slider extends PureComponent { ? (boundingRect?.right ?? 0) - clientX : clientX - (boundingRect?.left ?? 0); return leftOffset / width; - } else if (value && range) { + } else if (value !== null && value !== undefined && range) { // Prevent NaN calculation if the range is 0. return range === 0 ? 0 : (value - this.props.min) / range; }