From 57cc5e653696a306b13384f2343967230bd674d9 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Fri, 15 Dec 2023 17:36:08 +0800 Subject: [PATCH] chore: code clean --- src/BaseInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaseInput.tsx b/src/BaseInput.tsx index 7b7cd60..4cee233 100644 --- a/src/BaseInput.tsx +++ b/src/BaseInput.tsx @@ -55,7 +55,7 @@ const BaseInput: FC = (props) => { }); // ================== Prefix & Suffix ================== // - if (hasPrefixSuffix(props)) { + if (hasAffix) { // ================== Clear Icon ================== // let clearIcon: ReactNode = null; if (allowClear) {