Browse Source

Select: update popper after options change

Leopoldthecoder 7 years ago
parent
commit
7ae2662b7c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/select/src/select.vue

+ 3 - 0
packages/select/src/select.vue

@@ -390,6 +390,9 @@
 
 
       options() {
       options() {
         if (this.$isServer) return;
         if (this.$isServer) return;
+        this.$nextTick(() => {
+          this.broadcast('ElSelectDropdown', 'updatePopper');
+        });
         if (this.multiple) {
         if (this.multiple) {
           this.resetInputHeight();
           this.resetInputHeight();
         }
         }