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:
jasquat 2024-05-15 14:22:58 +00:00 committed by GitHub
parent 096d1ef66e
commit 41e293c37b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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) || '';