Skip to content

Commit

Permalink
Merge pull request #383 from oziian/master
Browse files Browse the repository at this point in the history
Added forceVisible parameter to tipProps.
  • Loading branch information
yesmeck authored Jan 12, 2018
2 parents 7a021d4 + 21d9dce commit b90084c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/createSliderWithTooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function createSliderWithTooltip(Component) {
prefixCls = 'rc-slider-tooltip',
overlay = tipFormatter(value),
placement = 'top',
visible = visible || false,
...restTooltipProps,
} = tipProps;

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

<Handle
{...restProps}
style={{
Expand Down

0 comments on commit b90084c

Please sign in to comment.