Skip to content

Commit

Permalink
don't fire onChange if the value is identical
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Nov 21, 2023
1 parent 42ff6c6 commit e22bf67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/app/util/ISOPickers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function ISOPicker(props: ISOPickerProps): JSX.Element {
const newVal = parseInputToISO(newInputValue)
if (!newVal) return
if (getSoftValidationError(newVal)) return
if (newVal === valueAsDT?.toUTC().toISO()) return

onChange(newVal)
}
Expand Down

0 comments on commit e22bf67

Please sign in to comment.