Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ref.current = setTimeout(() => {
onClick()
// @ts-ignore
const parsedDate = parseDate(dateValue, dateFormat, new Date())
// @ts-ignore
if (!isNaN(parsedDate)) {
onChange(parsedDate)
}
}, 1000)
}