Skip to content

[组件名称] t-dialog 关闭后,t-dialog内的按钮还可以点击? #3529

@luoxin59420

Description

@luoxin59420

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>

如下视频:关闭弹窗后,点击空白地方,还能执行内部按钮

WeChat_20250315174157.mp4

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions