Commit 9044be7865d904268c99c77a93646e690721950b
Committed by
GitHub
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,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 | }, |