diff --git a/components/button/button.tsx b/components/button/button.tsx index 379980f479..b83e91dfe6 100644 --- a/components/button/button.tsx +++ b/components/button/button.tsx @@ -190,7 +190,7 @@ const InternalButton: React.ForwardRefRenderFunction = (pr // =============== Update Loading =============== const loadingOrDelay: Loading = - typeof loading === 'object' && loading.delay ? loading.delay || true : !!loading; + typeof loading === 'boolean' ? loading : (loading?.delay || true); React.useEffect(() => { let delayTimer: number | null = null;