Sfoglia il codice sorgente

Cascader: fix menu popper update timing

Leopoldthecoder 8 anni fa
parent
commit
583466d380
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
       });
     },