Skip to content

Commit

Permalink
Merge pull request #155 from pulibrary/datePicker-updates
Browse files Browse the repository at this point in the history
Update Datepicker functions to use the correct event
  • Loading branch information
christinach authored Mar 25, 2024
2 parents 8248d6a + 6d1cdf2 commit 18859d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/LuxDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const props = defineProps({
},
})
const emit = defineEmits(["updateInput"])
const emit = defineEmits(["updateInput", "updateRangeInput"])
const date = ref(props.defaultDate)
const range = ref(props.defaultDates)
Expand Down Expand Up @@ -211,7 +211,7 @@ function calendarClosedRange(value) {
isValidFormat(range.value.end.toLocaleDateString("en-US"))
) {
var rangeAsText = formatStart() + " - " + formatEnd()
emit("updateInput", rangeAsText)
emit("updateRangeInput", rangeAsText)
}
}
Expand Down Expand Up @@ -256,7 +256,7 @@ function updateRangeInput(value) {
end: parseDate(r[1]),
}
range.value.end = parseDate(r[1])
emit("updateInput", value)
emit("updateRangeInput", value)
}
}
}
Expand Down

0 comments on commit 18859d8

Please sign in to comment.