client/upload: don't call emitFiles when there are none
This commit is contained in:
parent
4e8f72fb87
commit
9eb128bf05
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ class FileDropperControl extends events.EventTarget {
|
||||||
|
|
||||||
if (!this._options.allowMultiple && fileList.length > 1) {
|
if (!this._options.allowMultiple && fileList.length > 1) {
|
||||||
window.alert("Cannot select multiple files.");
|
window.alert("Cannot select multiple files.");
|
||||||
} else {
|
} else if (fileList.length > 0) {
|
||||||
this._emitFiles(fileList);
|
this._emitFiles(fileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue