bugfix choose the same img modal

This commit is contained in:
Phillip Lang Martinez 2022-12-05 02:33:33 +02:00
parent 2b3b5ce94f
commit d78bebe623

View File

@ -183,12 +183,16 @@ class ChatTextEditor extends LitElement {
> >
</vaadin-icon> </vaadin-icon>
<div class="file-picker-input-container"> <div class="file-picker-input-container">
<input <input
@change="${e => { @change="${e => {
e.preventDefault();
this.insertImage(e.target.files[0]); this.insertImage(e.target.files[0]);
const filePickerInput = this.shadowRoot.getElementById('file-picker')
if(filePickerInput){
filePickerInput.value = ""
}
} }
}" }"
id="file-picker"
class="file-picker-input" type="file" name="myImage" accept="image/*" /> class="file-picker-input" type="file" name="myImage" accept="image/*" />
</div> </div>
</div> </div>