bbovenzi commented on code in PR #65461:
URL: https://github.com/apache/airflow/pull/65461#discussion_r3131358123


##########
airflow-core/src/airflow/ui/src/components/DateTimeInput.tsx:
##########
@@ -64,6 +80,7 @@ export const DateTimeInput = forwardRef<HTMLInputElement, 
Props>(({ onChange, va
         // Parse input to UTC once user finishes typing
         debouncedOnDateChange(event);
       }}
+      onPaste={handlePaste}

Review Comment:
   onPaste and onChange are both parsing a string. Let's try to pull out the 
shared logic into one function. Probably by modifying onDateChange since 
onPaste doesn't need debouncing



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to