From 788bea484947423ea110289e1fd2840bd17436db Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 3 Jan 2020 10:08:45 +0800 Subject: [PATCH] revert --- changelog.md | 3 --- src/widget/singleslider/singleslider.js | 1 + src/widget/singleslider/singleslider.label.js | 1 + src/widget/singleslider/singleslider.normal.js | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 1c0dec991..251859dd5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,4 @@ # 更新日志 -2.0(2020-1) -- 修复单值系滑块滑动松手后发两次EVENT_CHANGE的问题 - 2.0(2019-12) - 修复多层级单选下拉树主动设置container后搜索面板弹出问题 - bi.search_editor支持搜索中间含有空格的字符串 diff --git a/src/widget/singleslider/singleslider.js b/src/widget/singleslider/singleslider.js index 88830da4c..c3c8e2c6e 100644 --- a/src/widget/singleslider/singleslider.js +++ b/src/widget/singleslider/singleslider.js @@ -173,6 +173,7 @@ BI.SingleSlider = BI.inherit(BI.Single, { } widget.element.removeClass("dragging"); mouseMoveTracker.releaseMouseMoves(); + self.fireEvent(BI.SingleSlider.EVENT_CHANGE); }, window); widget.element.on("mousedown", function (event) { if(!widget.isEnabled()) { diff --git a/src/widget/singleslider/singleslider.label.js b/src/widget/singleslider/singleslider.label.js index ca0c421a8..034d22f14 100644 --- a/src/widget/singleslider/singleslider.label.js +++ b/src/widget/singleslider/singleslider.label.js @@ -158,6 +158,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, { } widget.element.removeClass("dragging"); mouseMoveTracker.releaseMouseMoves(); + self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); }, window); widget.element.on("mousedown", function (event) { if(!widget.isEnabled()) { diff --git a/src/widget/singleslider/singleslider.normal.js b/src/widget/singleslider/singleslider.normal.js index ef4b23de8..347906fae 100644 --- a/src/widget/singleslider/singleslider.normal.js +++ b/src/widget/singleslider/singleslider.normal.js @@ -124,6 +124,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, { } widget.element.removeClass("dragging"); mouseMoveTracker.releaseMouseMoves(); + self.fireEvent(BI.SingleSlider.EVENT_CHANGE); }, window); widget.element.on("mousedown", function (event) { if(!widget.isEnabled()) {