Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Manually set option's selected prop (#5118)
Olga Bulat66583ed84dac
diff --git a/frontend/src/components/VSelectField/VSelectField.vue b/frontend/src/components/VSelectField/VSelectField.vueindex 2572e1e0c..cdf4913c2 100644--- a/frontend/src/components/VSelectField/VSelectField.vue+++ b/frontend/src/components/VSelectField/VSelectField.vue@@ -105,7 +105,12 @@ const splitAttrs = computed(() => {:aria-label="labelText"><option v-if="blankText" disabled value="">{{ blankText }}</option>- <option v-for="choice in choices" :key="choice.key" :value="choice.key">+ <option+ v-for="choice in choices"+ :key="choice.key"+ :value="choice.key"+ :selected="choice.key === selectValue ? true : undefined"+ >{{ choice.text }}</option></select>