Browse Source

BI-83103 fix:区间滑块值最小值大于最大值,数值不会颠倒了

master
Tangjinxia 4 years ago
parent
commit
eeeac08086
  1. 2
      src/widget/intervalslider/intervalslider.js

2
src/widget/intervalslider/intervalslider.js

@ -335,7 +335,7 @@ BI.IntervalSlider = BI.inherit(BI.Single, {
valueOne = BI.parseFloat(valueOne);
valueTwo = BI.parseFloat(valueTwo);
if((oldValueOne <= oldValueTwo && valueOne > valueTwo) || (oldValueOne >= oldValueTwo && valueOne < valueTwo)) {
var isSliderOneLeft = BI.parseFloat(this.sliderOne.element[0].style.left) < BI.parseFloat(this.sliderTwo.element[0].style.left);
var isSliderOneLeft = BI.parseFloat(this.labelOne.getValue()) < BI.parseFloat(this.labelTwo.getValue());
this._resetLabelPosition(!isSliderOneLeft);
}
},

Loading…
Cancel
Save