fix: datetime not rendering for empty value

This commit is contained in:
Daniel Lautzenheiser 2023-01-14 22:59:06 -05:00
parent 297d27e162
commit 839059d4f9
No known key found for this signature in database
GPG Key ID: D2F75F7DD915527E
4 changed files with 2 additions and 27 deletions

View File

@ -158,10 +158,6 @@ const DateTimeControl: FC<WidgetControlProps<string, DateTimeField>> = ({
);
const dateTimePicker = useMemo(() => {
if (!internalValue) {
return null;
}
const inputDate = field.picker_utc ? utcDate : dateValue;
if (dateFormat && !timeFormat) {
@ -258,7 +254,6 @@ const DateTimeControl: FC<WidgetControlProps<string, DateTimeField>> = ({
handleChange,
hasErrors,
inputFormat,
internalValue,
isDisabled,
label,
t,

View File

@ -29,6 +29,7 @@ module.exports = {
exclude: [
/(node_modules[\\/]@toast-ui[\\/]editor[\\/]dist)/,
/(node_modules[\\/]nth-check[\\/]lib)/,
/(node_modules[\\/]minimatch[\\/]dist)/,
/(src[\\/]formats[\\/]util)/,
],
},

View File

@ -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
View File

@ -0,0 +1 @@
../../../../node_modules/webpack/bin/webpack.js

View File

@ -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" %*
)