Преглед изворни кода

Select: update popper after options change

Leopoldthecoder пре 7 година
родитељ
комит
7ae2662b7c
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      packages/select/src/select.vue

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

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