mirror of
https://github.com/wassname/slider.git
synced 2026-10-03 12:50:28 +08:00
Refactor isNoTip expression
This commit is contained in:
1 parent
24f3b755b2
commit
4c57f3ecca
1 file changed
+1
-1
+1
-1
@@ -339,7 +339,7 @@ class Slider extends React.Component {
|
||||
const lowerOffset = this.calcOffset(lowerBound);
|
||||
|
||||
const handleClassName = prefixCls + '-handle';
|
||||
const isNoTip = tipFormatter === null || (step === null && !tipFormatter);
|
||||
const isNoTip = (step === null) || (tipFormatter === null);
|
||||
|
||||
const upper = (<Handle className={handleClassName}
|
||||
noTip={isNoTip} tipTransitionName={tipTransitionName} tipFormatter={tipFormatter}
|
||||
|
||||
Reference in new issue
Block a user