Skip to content

Commit

Permalink
Rename forceVisible to visible
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Oziian committed Jan 11, 2018
1 parent d14fb7d commit 21d9dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createSliderWithTooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function createSliderWithTooltip(Component) {
prefixCls = 'rc-slider-tooltip',
overlay = tipFormatter(value),
placement = 'top',
forceVisible = forceVisible || false,
visible = visible || false,
...restTooltipProps,
} = tipProps;

Expand All @@ -50,7 +50,7 @@ export default function createSliderWithTooltip(Component) {
prefixCls={prefixCls}
overlay={overlay}
placement={placement}
visible={(!disabled && (this.state.visibles[index] || dragging)) || forceVisible}
visible={(!disabled && (this.state.visibles[index] || dragging)) || visible}
key={index}
>

Expand Down

0 comments on commit 21d9dce

Please sign in to comment.