From 374c94d08aadf593394c16e89c273a6e16b6e559 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 19 Aug 2019 12:01:33 +0800 Subject: [PATCH] =?UTF-8?q?Textarea=20=E5=80=BC=E4=B8=BA=20null=20?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/Textarea.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/Form/Textarea.tsx b/src/renderers/Form/Textarea.tsx index 33384127f..845dd76ef 100644 --- a/src/renderers/Form/Textarea.tsx +++ b/src/renderers/Form/Textarea.tsx @@ -91,7 +91,7 @@ export default class TextAreaControl extends React.Component disabled={disabled} type={type} className={cx(`${ns}TextareaControl`, className)} - value={typeof value === 'undefined' ? '' : typeof value === 'string' ? value : JSON.stringify(value)} + value={typeof value === 'undefined' || value === null ? '' : typeof value === 'string' ? value : JSON.stringify(value)} placeholder={placeholder} minRows={minRows} maxRows={maxRows}