From 4de43677065cd319f6eeecca3ce2545b6d727d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Thu, 20 Jul 2023 09:46:26 +0800 Subject: [PATCH] fix: Button default event handler (#43666) * test: test driven * fix: types * chore: post script --- components/button/__tests__/index.test.tsx | 31 ++++++++++++++++++++++ components/button/button.tsx | 29 ++++++++------------ scripts/post-script.js | 1 + 3 files changed, 43 insertions(+), 18 deletions(-) diff --git a/components/button/__tests__/index.test.tsx b/components/button/__tests__/index.test.tsx index 496de4d8c8..4f9aff1ede 100644 --- a/components/button/__tests__/index.test.tsx +++ b/components/button/__tests__/index.test.tsx @@ -351,7 +351,38 @@ describe('Button', () => { const button =