Overview
I successfully integrated a select box into my Vue.js/Nuxt.js application using Vuetify.js.
I utilized the @change event to capture the selected value.
<v-select
v-model="selectedStartTime"
:items="startTime"
item-text="text"
item-value="value"
@change="onChangeEndTime"
/>
onChangeEndTime (e : Event) {
console.log(e)
}
When checking the Developer Console, I noticed that the selected value is displayed as an object.
I am looking for a way to specifically retrieve the 'hour' and 'minute' values within the onChangeEndTime function.
https://i.sstatic.net/RdfIB.png
Attempts Made
console.log(e.target)
resulted inundefined
.console.log(e.hour)
provided the correct value, but triggered an error message
.Property 'hour' does not exist on type 'Event'.Vetur(2339)