0👍
simple way you should use
v-model
in your code and after delete it clear this value
- [Vuejs]-How to set focus to Vue3 Typescript app to input element on Bootstrap modal when opened
- [Vuejs]-How to refer to specific dynamically added component from number of dynamically added components in Vue, version 2.9
0👍
My solution:
<v-file-input
v-bind="$props"
ref="fileUpload"
accept="image/png, image/jpeg, image/svg"
:placeholder="fileName ? fileName : $t(labelType)"
prepend-icon="mdi-camera"
:disabled="!!fileName"
:error-messages="getInvalidFeedback"
@change="uploadFiles"
@focus="formFieldOnFocus"
></v-file-input>
added :key="componentKey" and increasing it value when deleting the image
- [Vuejs]-How do I make a Vuejs value display in my html?
- [Vuejs]-How do I properly set up anchor links in Vue
Source:stackexchange.com