From 5d217568abb70984984bc26ea12b530a356f4a86 Mon Sep 17 00:00:00 2001 From: Mohammad Luthfi Fathur Rahman Date: Thu, 3 Nov 2022 01:27:08 +0700 Subject: [PATCH] fix the error on controlled input --- src/components/DatePicker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DatePicker/index.js b/src/components/DatePicker/index.js index b0223a9fa450..9f3c93a50605 100644 --- a/src/components/DatePicker/index.js +++ b/src/components/DatePicker/index.js @@ -42,7 +42,7 @@ class DatePicker extends React.Component { */ setDate(text) { if (!text) { - this.props.onInputChange(null); + this.props.onInputChange(''); return; }