Commit 583466d3 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by cinwell.li

Cascader: fix menu popper update timing

parent 7651d253
......@@ -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;
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment