Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/ReactSlider/ReactSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,11 @@ class ReactSlider extends React.Component {
componentDidUpdate() {
// If an upperBound has not yet been determined (due to the component being hidden
// during the mount event, or during the last resize), then calculate it now
if (this.state.upperBound === 0) {
if (
this.state.upperBound === 0 ||
this.state.thumbSize === 0 ||
this.state.sliderLength === 0
) {
this.resize();
}
}
Expand Down