mirror of
https://github.com/wassname/slider.git
synced 2026-09-09 11:35:22 +08:00
If tipFormatter is null, don't show the tip
This commit is contained in:
+1
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user