<script>
export default {
props: { multiple: { type: Boolean, default: false } }
}
</script>
<template>
<input type="file" :multiple="multiple" />
</template>
does not work. Maybe because Vue sets the attribute after the DOM is build. And HTML does not recheck for attributes.
How do I fix this? I already tried v-once
and duplicating the input element with a v-if
, both failed. I need to set the multiple
Attribute dynamically on component creation.
thank you.