fix(dialog-box): fix issue #1242 (#1550)

Co-authored-by: RanierYu <whylost@aliyu.com>
This commit is contained in:
Ranier Yu 2024-04-12 14:33:29 +08:00 committed by GitHub
parent f42012cb1e
commit cca1a5eab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -89,4 +89,6 @@ describe('PC Mode', () => {
test.todo('drag-move 拖拽移动事件') test.todo('drag-move 拖拽移动事件')
test.todo('drag-end 拖拽结束事件') test.todo('drag-end 拖拽结束事件')
test.todo('可拖拽的弹窗关闭时只触发关闭事件(close),不应触发拖拽结束事件(drag-end)')
}) })

View File

@ -42,6 +42,7 @@
class="tiny-dialog-box__headerbtn" class="tiny-dialog-box__headerbtn"
aria-label="Close" aria-label="Close"
@click="handleClose('close', $event)" @click="handleClose('close', $event)"
@mousedown.stop
> >
<icon-close class="tiny-svg-size tiny-dialog-box__close" /> <icon-close class="tiny-svg-size tiny-dialog-box__close" />
</button> </button>