mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
fix(slider): mouse up on handle tooltip value is not correctly
This commit is contained in:
parent
cdc99910a7
commit
10ce599d7d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user