fix: datetime not rendering for empty value
This commit is contained in:
parent
297d27e162
commit
839059d4f9
@ -158,10 +158,6 @@ const DateTimeControl: FC<WidgetControlProps<string, DateTimeField>> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const dateTimePicker = useMemo(() => {
|
const dateTimePicker = useMemo(() => {
|
||||||
if (!internalValue) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const inputDate = field.picker_utc ? utcDate : dateValue;
|
const inputDate = field.picker_utc ? utcDate : dateValue;
|
||||||
|
|
||||||
if (dateFormat && !timeFormat) {
|
if (dateFormat && !timeFormat) {
|
||||||
@ -258,7 +254,6 @@ const DateTimeControl: FC<WidgetControlProps<string, DateTimeField>> = ({
|
|||||||
handleChange,
|
handleChange,
|
||||||
hasErrors,
|
hasErrors,
|
||||||
inputFormat,
|
inputFormat,
|
||||||
internalValue,
|
|
||||||
isDisabled,
|
isDisabled,
|
||||||
label,
|
label,
|
||||||
t,
|
t,
|
||||||
|
@ -29,6 +29,7 @@ module.exports = {
|
|||||||
exclude: [
|
exclude: [
|
||||||
/(node_modules[\\/]@toast-ui[\\/]editor[\\/]dist)/,
|
/(node_modules[\\/]@toast-ui[\\/]editor[\\/]dist)/,
|
||||||
/(node_modules[\\/]nth-check[\\/]lib)/,
|
/(node_modules[\\/]nth-check[\\/]lib)/,
|
||||||
|
/(node_modules[\\/]minimatch[\\/]dist)/,
|
||||||
/(src[\\/]formats[\\/]util)/,
|
/(src[\\/]formats[\\/]util)/,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
15
packages/demo/node_modules/.bin/webpack
generated
vendored
15
packages/demo/node_modules/.bin/webpack
generated
vendored
@ -1,15 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
||||||
|
|
||||||
case `uname` in
|
|
||||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -x "$basedir/node" ]; then
|
|
||||||
"$basedir/node" "$basedir/../../../../node_modules/webpack/bin/webpack.js" "$@"
|
|
||||||
ret=$?
|
|
||||||
else
|
|
||||||
node "$basedir/../../../../node_modules/webpack/bin/webpack.js" "$@"
|
|
||||||
ret=$?
|
|
||||||
fi
|
|
||||||
exit $ret
|
|
1
packages/demo/node_modules/.bin/webpack
generated
vendored
Symbolic link
1
packages/demo/node_modules/.bin/webpack
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../../node_modules/webpack/bin/webpack.js
|
7
packages/demo/node_modules/.bin/webpack.cmd
generated
vendored
7
packages/demo/node_modules/.bin/webpack.cmd
generated
vendored
@ -1,7 +0,0 @@
|
|||||||
@IF EXIST "%~dp0\node.exe" (
|
|
||||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\webpack\bin\webpack.js" %*
|
|
||||||
) ELSE (
|
|
||||||
@SETLOCAL
|
|
||||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
||||||
node "%~dp0\..\..\..\..\node_modules\webpack\bin\webpack.js" %*
|
|
||||||
)
|
|
Loading…
x
Reference in New Issue
Block a user