Commit 9044be7865d904268c99c77a93646e690721950b

Authored by Aresn
Committed by GitHub
2 parents 2a326245 e845e84d

Merge pull request #2802 from chenfengjw163/2.0

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