Cascader: fix menu popper update timing

pull/2993/head
Leopoldthecoder 2017-02-23 14:55:00 +08:00 committed by cinwell.li
parent 7651d2532d
commit 583466d380
1 changed files with 1 additions and 1 deletions

View File

@ -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;
});
},