I'm creating an input component and I want to pass a required property in, based on a boolean from the parent component
#Parent component
<Input
:required="false"
/>
#Child component
<input
@input="event => $emit('update:value', event.target.value)"
:required="required"
/>
The problem is, when the required from the parent component is false, it still puts required
into the html (which the browser reads as required).
How can I achieve this?
Thanks Mark