If tipFormatter is null, don't show the tip

This commit is contained in:
Frank Weindel
2015-12-16 16:38:15 -05:00
parent 978d877323
commit 39de81dfa9
+1 -1
View File
@@ -339,7 +339,7 @@ class Slider extends React.Component {
const lowerOffset = this.calcOffset(lowerBound);
const handleClassName = prefixCls + '-handle';
const isNoTip = (step === null) && !tipFormatter;
const isNoTip = tipFormatter === null || (step === null && !tipFormatter);
const upper = (<Handle className={handleClassName}
noTip={isNoTip} tipTransitionName={tipTransitionName} tipFormatter={tipFormatter}