Explorar el Código

Slider: fix change event (#1810)

杨奕 hace 8 años
padre
commit
8123ee1c48
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/slider/src/main.vue

+ 2 - 2
packages/slider/src/main.vue

@@ -195,9 +195,9 @@
            */
           setTimeout(() => {
             this.dragging = false;
+            this.$refs.tooltip.showPopper = false;
+            this.setPosition(this.newPos);
           }, 0);
-          this.$refs.tooltip.showPopper = false;
-          this.setPosition(this.newPos);
           window.removeEventListener('mousemove', this.onDragging);
           window.removeEventListener('mouseup', this.onDragEnd);
           window.removeEventListener('contextmenu', this.onDragEnd);