Prevent double image addition

This commit is contained in:
Ivan Diaz 2018-10-05 02:51:18 -03:00
parent 3f7dcc8d2c
commit b4232e5fd6
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ class TextEditor extends React.Component {
for (let index in items) {
let item = items[index];
if (item.kind === 'file') {
event.preventDefault();
let blob = item.getAsFile();
let reader = new FileReader();
reader.onload = (event) => {