From 10ce599d7dc6703ffb3c953d080f0667b8a8b7a1 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sun, 15 Sep 2019 12:19:11 +0800 Subject: [PATCH] fix(slider): mouse up on handle tooltip value is not correctly --- packages/common/Slider/src/main.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/common/Slider/src/main.vue b/packages/common/Slider/src/main.vue index 8dc0429b1..10ababe29 100644 --- a/packages/common/Slider/src/main.vue +++ b/packages/common/Slider/src/main.vue @@ -341,6 +341,8 @@ export default { this.firstHandleActive = false if (!this.$refs.firstHandle.contains(e.target)) { this.showTooltip = false + } else { + this.tooltipHoverDisplayValue = this.firstHandleValue } window.removeEventListener('mouseup', this.handleFirstHandleMouseUp) window.removeEventListener('mousemove', this.throttledHandleFirstHandleMouseMove) @@ -350,6 +352,8 @@ export default { this.firstHandleActive = false if (!this.$refs.firstHandle.contains(e.target)) { this.showTooltip = false + } else { + this.tooltipHoverDisplayValue = this.secondHandleValue } window.removeEventListener('mouseup', this.handleSecondHandleMouseUp) window.removeEventListener('mousemove', this.throttledHandleSecondHandleMouseMove)