mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
Textarea 值为 null 时显示为空
This commit is contained in:
parent
3b7d8e6e59
commit
b07e424425
@ -91,7 +91,7 @@ export default class TextAreaControl extends React.Component<TextAreaProps, any>
|
||||
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}
|
||||
|
Loading…
Reference in New Issue
Block a user