From 847688fd2ad3ec4efe5f52d06801ebb777d042c6 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 30 Nov 2024 17:47:05 +0800 Subject: [PATCH] fix: clear button should have type="button" --- src/BaseInput.tsx | 1 + tests/__snapshots__/index.test.tsx.snap | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/BaseInput.tsx b/src/BaseInput.tsx index 125ab91..96da424 100644 --- a/src/BaseInput.tsx +++ b/src/BaseInput.tsx @@ -81,6 +81,7 @@ const BaseInput = React.forwardRef((props, ref) => { clearIcon = ( @@ -140,6 +141,7 @@ exports[`Input allowClear should change type when click 2`] = ` > @@ -163,6 +165,7 @@ exports[`Input allowClear should not show icon if defaultValue is undefined or e > @@ -186,6 +189,7 @@ exports[`Input allowClear should not show icon if defaultValue is undefined or e > @@ -209,6 +213,7 @@ exports[`Input allowClear should not show icon if value is undefined or empty st > @@ -232,6 +237,7 @@ exports[`Input allowClear should not show icon if value is undefined or empty st >