diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js index 7d1702ee..c274b913 100644 --- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js +++ b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js @@ -239,7 +239,7 @@ otherMixins = { views .selectAll('.' + this.elClass) .boundingClientRect(data => { - if (data.length === 0) return + if (!data || data.length === 0) return let show = 'none' if (this.autoClose) { show = 'none'