浏览代码

Cascader: fix menu popper update timing

Leopoldthecoder 8 年之前
父节点
当前提交
583466d380
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
       });
     },