Skip to content

Commit

Permalink
Merge pull request #111 from Holo-Host/cc-switch-to-vite-09-09
Browse files Browse the repository at this point in the history
Cc switch to vite 09 09
  • Loading branch information
robbiecarlton authored Sep 10, 2024
2 parents f3551c3 + 23580bc commit b5d98c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Dropdown.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div class="label" v-if="label && label.length > 0">{{ label }}:</div>
<select v-model="selectedOption" :disabled="disabled" class="drop-down" @change="$emit('optionChanged', selectedOption)">
<select :value="selectedOption" :disabled="disabled" class="drop-down" @change="updateSelection($event.target.value)">
<option v-for="option in options" :value="option" :key="option">
{{ option }}
</option>
Expand All @@ -18,6 +18,11 @@ export default {
label: String,
options: Array,
selectedOption: String
},
methods: {
updateSelection(value) {
this.$emit('optionChanged', value);
}
}
}
</script>
Expand Down

0 comments on commit b5d98c3

Please sign in to comment.