[Client] Fix bug
This commit is contained in:
parent
2e99f57cf8
commit
d4f245f51c
6 changed files with 39 additions and 39 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue