Tencent / Tencent/tdesign-miniprogram
[组件名称] t-dialog 关闭后,t-dialog内的按钮还可以点击?
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 1.8k
- Forks
- 337
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 19
Description
tdesign-miniprogram 版本
1.6.2
重现链接
No response
重现步骤
<t-dialog
class="dialog-contain"
visible="{{showWithRename}}"
title="{{ isRename ? '重命名' : '确认删除吗' }}"
close-on-overlay-click
bind:close="closeDialog"
<view slot="content">
<block wx:if="{{ isRename }}">
<t-input
borderless
class="dialog-input"
cursor="{{ currentMyDevice && currentMyDevice.deviceTagName && currentMyDevice.deviceTagName.length }}"
clearable
maxlength="{{20}}"
slot="content"
value="{{ currentMyDevice.deviceTagName || '' }}"
placeholder="{{ '请输入' }}"
placeholder-class="placeholder"
bindchange="changeInput"
bindclear="clearName"
/>
<view class="xiahuaxian"></view>
<view class="dialog-btn-group">
<button bind:tap="closeDialog">取消</button>
<t-divider class="btn-divider" layout="vertical" />
<button bind:tap="confirmDialog">确定</button>
</view>
</block>
<block wx:else>
<view class="dialog-btn-group {{ isRename ? '' : 'remove-top' }}">
<button bind:tap="closeDialog">取消</button>
<t-divider class="btn-divider" layout="vertical" />
<button bind:tap="confirmDelPopup">确定</button>
</view>
</block>
</view>
如下视频:关闭弹窗后,点击空白地方,还能执行内部按钮
https://github.com/user-attachments/assets/55f84a7c-3471-4f19-b9ac-ba07418644f2
期望结果
No response
实际结果
No response
基础库版本
No response
补充说明
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the t-dialog component entry point and reproduce the issue using the provided tdesign-miniprogram 1.6.2 example. Inspect how closing the dialog handles its content and overlay, then confirm that closing it no longer allows clicks in the former dialog area to trigger internal button handlers.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100