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:
Phoenix Eliot 2020-03-30 21:54:41 -06:00 committed by GitHub
parent cefb7b29f2
commit ebdf9110fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`}