fix: update innerLoading to loading (#55789)

This commit is contained in:
lijianan
2025-11-21 11:33:13 +08:00
committed by GitHub
parent b4168a0f29
commit 27b5fc0552

View File

@@ -359,7 +359,7 @@ const InternalCompoundedButton = React.forwardRef<
let iconNode: React.ReactNode;
if (icon && !innerLoading) {
iconNode = iconWrapperElement(icon);
} else if (innerLoading && typeof loading === 'object' && loading.icon) {
} else if (loading && typeof loading === 'object' && loading.icon) {
iconNode = iconWrapperElement(loading.icon);
} else {
iconNode = defaultLoadingIconElement();