mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 23:46: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}
|
||||
title={tipFormatter ? tipFormatter(value) : ''}
|
||||
visible={visible}
|
||||
placement={tooltipPlacement || vertical ? 'right' : 'top'}
|
||||
placement={tooltipPlacement || (vertical ? 'right' : 'top')}
|
||||
transitionName="zoom-down"
|
||||
key={index}
|
||||
overlayClassName={`${prefixCls}-tooltip`}
|
||||
|
Loading…
Reference in New Issue
Block a user