Explorar el Código

Cascader: fix menu popper update timing

Leopoldthecoder hace 8 años
padre
commit
583466d380
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/cascader/src/main.vue

+ 1 - 1
packages/cascader/src/main.vue

@@ -220,8 +220,8 @@ export default {
       this.menu.value = this.currentValue.slice(0);
       this.menu.visible = true;
       this.menu.options = this.options;
-      this.updatePopper();
       this.$nextTick(_ => {
+        this.updatePopper();
         this.menu.inputWidth = this.$refs.input.$el.offsetWidth - 2;
       });
     },