From 94531dd418981f0ed1bb4bb1db8355732bf74bcc Mon Sep 17 00:00:00 2001 From: rickcole Date: Thu, 18 Jun 2020 10:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drange=20value=E4=B8=BA0?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=87=AA=E5=8A=A8=E8=BD=AC=E4=B8=BA=E6=9C=80?= =?UTF-8?q?=E5=B0=8F=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/Range.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/Form/Range.tsx b/src/renderers/Form/Range.tsx index e067646b1..3bcd84e13 100644 --- a/src/renderers/Form/Range.tsx +++ b/src/renderers/Form/Range.tsx @@ -68,7 +68,7 @@ export function formatValue( }; } } - return value || props.min; + return value ?? props.min; } type PropsWithDefaults = RangeProps & DefaultProps;