fix(slider): mouse up on handle tooltip value is not correctly

This commit is contained in:
07akioni 2019-09-15 12:19:11 +08:00
parent cdc99910a7
commit 10ce599d7d

View File

@ -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)