Skip to content

Commit

Permalink
fix: 修复popup居中模式点击内容区域触发关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Dec 9, 2024
1 parent aeb5adf commit 5d2d557
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uni_modules/uview-plus/components/u-popup/u-popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
@afterEnter="afterEnter"
@click="clickHandler"
>
<!-- @click.stop不能去除,去除会导致居中模式下点击内容区域触发关闭弹窗 -->
<view
class="u-popup__content"
:style="[contentStyle]"
@click.stop="noop"
@touchmove.stop.prevent="noop"
>
<u-status-bar v-if="safeAreaInsetTop"></u-status-bar>
Expand Down

0 comments on commit 5d2d557

Please sign in to comment.