mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
Fix order of operations for tooltipPlacement (#22772)
tooltipPlacement was broken by a6c207d9dd
.
The grouping of this term was getting parsed as `(tooltipPlacement || vertical) ? 'right' : 'top'`, which was incorrect.
This commit is contained in:
parent
cefb7b29f2
commit
ebdf9110fd
@ -106,7 +106,7 @@ export default class Slider extends React.Component<SliderProps, SliderState> {
|
|||||||
prefixCls={tooltipPrefixCls}
|
prefixCls={tooltipPrefixCls}
|
||||||
title={tipFormatter ? tipFormatter(value) : ''}
|
title={tipFormatter ? tipFormatter(value) : ''}
|
||||||
visible={visible}
|
visible={visible}
|
||||||
placement={tooltipPlacement || vertical ? 'right' : 'top'}
|
placement={tooltipPlacement || (vertical ? 'right' : 'top')}
|
||||||
transitionName="zoom-down"
|
transitionName="zoom-down"
|
||||||
key={index}
|
key={index}
|
||||||
overlayClassName={`${prefixCls}-tooltip`}
|
overlayClassName={`${prefixCls}-tooltip`}
|
||||||
|
Loading…
Reference in New Issue
Block a user