<template>
    <dropdownQuestion
        disableAutoFill
        class="mb-5 mt-4"
        v-model="selectedValue"
        :valueAsKey="true"
        :disableValidationIfElementDisabled="true" />
</template>

<script>
import dropdownQuestion from "@/digital-components/dropdown-question/dropdown-question";

export default {
    name: "vehicle-question",

    props: {
        modelValue: String,
    },

    components: {
        dropdownQuestion,
    },

    computed: {
        selectedValue: {
            get: function () {
                return this.modelValue?.toString();
            },
            set: function (newValue) {
                this.$emit("update:modelValue", newValue);
            },
        },
    },
};
</script>
