From 44dd55b74c8910c17bb397200ce5eec9d1cd0c3a Mon Sep 17 00:00:00 2001 From: Kris Ellery Date: Sun, 13 Aug 2023 13:40:58 -0500 Subject: [PATCH] fix: do not spread `key` on render props --- src/components/ReactSlider/ReactSlider.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ReactSlider/ReactSlider.jsx b/src/components/ReactSlider/ReactSlider.jsx index e4c49ea..36ef73d 100644 --- a/src/components/ReactSlider/ReactSlider.jsx +++ b/src/components/ReactSlider/ReactSlider.jsx @@ -350,9 +350,9 @@ class ReactSlider extends React.Component { snapDragDisabled: false, invert: false, marks: [], - renderThumb: props =>
, - renderTrack: props =>
, - renderMark: props => , + renderThumb: ({ key, ...props }) =>
, + renderTrack: ({ key, ...props }) =>
, + renderMark: ({ key, ...props }) => , }; constructor(props) {