From ef3fcba1075d4104dd5ba647593086dd39b4880b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A2=9C=E5=AE=87=E6=B5=A9?= Date: Sat, 12 Oct 2024 01:38:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20`Tag`=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=9C=A8=E7=82=B9=E5=87=BB=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=97=B6=E8=A7=A6=E5=8F=91=20onClick=20=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/base/src/tag/use-tag.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/base/src/tag/use-tag.ts b/packages/base/src/tag/use-tag.ts index 68e2bb172..5decd1e6e 100644 --- a/packages/base/src/tag/use-tag.ts +++ b/packages/base/src/tag/use-tag.ts @@ -66,6 +66,7 @@ const useTag = (props: BaseTagProps) => { }; const handleClose = (e: React.MouseEvent) => { + e.stopPropagation(); if (disabled || dismiss !== Finish) { return; } From bdac557054e212b6430652b89770ec020183f793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A2=9C=E5=AE=87=E6=B5=A9?= Date: Sat, 12 Oct 2024 01:54:49 +0800 Subject: [PATCH 2/2] faet: 3.4.3-beta.10 changelog --- package.json | 2 +- packages/shineout/src/tag/__doc__/changelog.cn.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dad243fa0..884198d9b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sheinx", "private": true, - "version": "3.4.3-beta.10", + "version": "3.4.3-beta.11", "description": "A react library developed with sheinx", "module": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/shineout/src/tag/__doc__/changelog.cn.md b/packages/shineout/src/tag/__doc__/changelog.cn.md index 1c5628c05..4eec2c33f 100644 --- a/packages/shineout/src/tag/__doc__/changelog.cn.md +++ b/packages/shineout/src/tag/__doc__/changelog.cn.md @@ -1,3 +1,9 @@ +## 3.4.3-beta.11 +2024-10-12 +### 🐞 BugFix + +- 修复 `Tag` 组件在 `onClose` 时触发 onClick 的问题 ([#712](https://github.com/sheinsight/shineout-next/pull/712)) + ## 3.4.2 2024-09-29 ### 🐞 BugFix