Commit e845e84d3b896312be68ba64493cfd48269196cd

Authored by 陈峰
Committed by GitHub
1 parent 3537176f

Update dropdown.vue

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
src/components/select/dropdown.vue
@@ -61,8 +61,10 @@ @@ -61,8 +61,10 @@
61 if (this.popper) { 61 if (this.popper) {
62 this.resetTransformOrigin(this.popper); 62 this.resetTransformOrigin(this.popper);
63 setTimeout(() => { 63 setTimeout(() => {
64 - this.popper.destroy();  
65 - this.popper = null; 64 + if (this.popper) {
  65 + this.popper.destroy();
  66 + this.popper = null;
  67 + }
66 }, 300); 68 }, 300);
67 } 69 }
68 }, 70 },