[Client] Fix bug
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
this.files = [];
|
||||
|
||||
this.on('mount', () => {
|
||||
this.refs.browser.on('change-selected', files => {
|
||||
this.refs.browser.on('change-selection', files => {
|
||||
this.update({
|
||||
files: files
|
||||
});
|
||||
|
@@ -358,7 +358,7 @@
|
||||
this.selectedFiles.push(file);
|
||||
}
|
||||
this.update();
|
||||
this.trigger('change-selected', this.selectedFiles);
|
||||
this.trigger('change-selection', this.selectedFiles);
|
||||
} else {
|
||||
this.cf(file);
|
||||
}
|
||||
|
@@ -128,7 +128,7 @@
|
||||
this.file = this.opts.file;
|
||||
this.isSelected = this.browser.selectedFiles.some(f => f.id == this.file.id);
|
||||
|
||||
this.browser.on('change-selected', selections => {
|
||||
this.browser.on('change-selection', selections => {
|
||||
this.isSelected = selections.some(f => f.id == this.file.id);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user