debounce date after 100 ms instead of 1s w/ burnettk (#1556)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
096d1ef66e
commit
41e293c37b
|
@ -86,7 +86,7 @@ export default function BaseInputTemplate<
|
||||||
_onChange(fullObject);
|
_onChange(fullObject);
|
||||||
},
|
},
|
||||||
// delay in ms
|
// delay in ms
|
||||||
1000
|
100
|
||||||
);
|
);
|
||||||
|
|
||||||
let enableCounter = false;
|
let enableCounter = false;
|
||||||
|
|
|
@ -176,7 +176,7 @@ const attemptToConvertUnknownDateStringFormatToKnownFormat = (
|
||||||
if (normalizedDateString.match(dateFormatRegex)) {
|
if (normalizedDateString.match(dateFormatRegex)) {
|
||||||
const newDate = parse(
|
const newDate = parse(
|
||||||
normalizedDateString,
|
normalizedDateString,
|
||||||
dateFormat.replaceAll(/MMM*/g, 'MM'),
|
numericalDateFormat,
|
||||||
new Date()
|
new Date()
|
||||||
);
|
);
|
||||||
newDateString = convertDateObjectToFormattedString(newDate) || '';
|
newDateString = convertDateObjectToFormattedString(newDate) || '';
|
||||||
|
|
Loading…
Reference in New Issue