Przeglądaj źródła

Cascader: fix menu popper update timing

Leopoldthecoder 8 lat temu
rodzic
commit
583466d380
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
       });
     },