Skip to content

Commit 34c9c01

Browse files
RSS1102tdesign-bot
andauthored
fix(popup): outside click not closing when initially visible=true (#5790)
* fix(popup): outside click not closing when initially `visible=true` * chore: stash changelog [ci skip] --------- Co-authored-by: tdesign-bot <[email protected]>
1 parent f267f5d commit 34c9c01

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/components/popup/popup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export default defineComponent({
225225
}
226226
off(document, 'mousedown', onDocumentMouseDown, true);
227227
},
228+
{ immediate: true },
228229
);
229230

230231
watch(
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
pr_number: 5790
3+
contributor: RSS1102
4+
---
5+
6+
- fix(Popup): 修复当初始 `visible` 为 true 时,点击外部区域时弹窗不关闭的问题 @RSS1102 ([#5790](https://github.com/Tencent/tdesign-vue-next/pull/5790))
7+
- fix(PopConfirm): 修复当初始 `visible` 为 true 时,点击外部区域时弹窗不关闭的问题 @RSS1102 ([#5790](https://github.com/Tencent/tdesign-vue-next/pull/5790))

0 commit comments

Comments
 (0)