Browse Source

Select: update popper after options change

Leopoldthecoder 7 năm trước cách đây
mục cha
commit
7ae2662b7c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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();
         }