fix(modal): resolve premature modal closing caused by unsupported click.self in wechat miniprogram
这个提交包含在:
@@ -184,8 +184,8 @@
|
||||
</view>
|
||||
|
||||
<!-- 举报不良行为弹窗 -->
|
||||
<view class="review-modal-mask" v-if="reportModalVisible" @click.self="closeReportModal">
|
||||
<view class="review-modal-content">
|
||||
<view class="review-modal-mask" v-if="reportModalVisible" @click="closeReportModal">
|
||||
<view class="review-modal-content" @click.stop="stopPropagation">
|
||||
<view class="modal-header">
|
||||
<view class="modal-header-left">
|
||||
<text class="modal-title">举报违规行为</text>
|
||||
@@ -264,6 +264,12 @@ onUnmounted(() => {
|
||||
uni.$off('theme-change', onThemeChanged);
|
||||
});
|
||||
|
||||
const stopPropagation = (e) => {
|
||||
if (e && typeof e.stopPropagation === 'function') {
|
||||
e.stopPropagation();
|
||||
}
|
||||
};
|
||||
|
||||
const isLoading = ref(true);
|
||||
const isFav = ref(false);
|
||||
const expert = ref({
|
||||
|
||||
在新工单中引用
屏蔽一个用户