Skip to content

Commit

Permalink
fix bug of selection
Browse files Browse the repository at this point in the history
  • Loading branch information
elproffesore committed Jul 8, 2024
1 parent fcd780f commit 7a6bb0a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ const data = reactive({})
const selectedOptionWhoIsConcerned = ref('')
function updateSelectedOptionWhoIsConcerned(target) {
selectedOptionWhoIsConcerned.value = target.explicitOriginalTarget[target.explicitOriginalTarget.value].innerText
}
const selectedOptionPerceivedTruth = ref('')
const selectedOptionPerceivedTruthIndex = ref(0)
function updateSelectedOptionPerceivedTruth(option, index) {
Expand Down Expand Up @@ -124,9 +122,9 @@ function setHeighestGroup(group, percent) {
<p>
If we look at the differences of perceived crisis throughout <select ref="selection"
class="w-min p-[2px] text-white bg-primary rounded"
v-on:change="updateSelectedOptionWhoIsConcerned">
v-model="selectedOptionWhoIsConcerned">
<option v-for="(option, index) in Object.keys(data.statisticsTime ?? {})" :key="index"
:value="index">
:value="option">
{{ option }}
</option>
Expand Down

0 comments on commit 7a6bb0a

Please sign in to comment.