Skip to content

Commit

Permalink
check of NaN in props change detection
Browse files Browse the repository at this point in the history
  • Loading branch information
akiran committed Jan 26, 2024
1 parent 27870b7 commit 8c9488f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/inner-slider.js
Expand Up @@ -134,7 +134,8 @@ export class InnerSlider extends React.Component {
}
if (
typeof prevProps[key] === "object" ||
typeof prevProps[key] === "function"
typeof prevProps[key] === "function" ||
isNaN(prevProps[key])
) {
continue;
}
Expand Down

0 comments on commit 8c9488f

Please sign in to comment.