From 1cd644d27feb4eeea5cbaedd009a3af2643af396 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Fri, 10 Jan 2025 19:48:56 +0100 Subject: [PATCH] fix: conditional renders 0 --- framework/core/js/src/common/components/Input.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/core/js/src/common/components/Input.tsx b/framework/core/js/src/common/components/Input.tsx index da4eaddb5..2605582ec 100644 --- a/framework/core/js/src/common/components/Input.tsx +++ b/framework/core/js/src/common/components/Input.tsx @@ -48,8 +48,8 @@ export default class Input extend > {this.attrs.prefixIcon && } {this.input({ inputClassName, value, inputAttrs })} - {this.attrs.loading && } - {this.attrs.clearable && value && !this.attrs.loading && ( + {this.attrs.loading ? : null} + {this.attrs.clearable && value && !this.attrs.loading ? (