diff --git a/packages/file-handling/src/clipboard.js b/packages/file-handling/src/clipboard.js index 92f3da20230fc1ba57adc30c2de4fe300bb52e4c..61f4638468cbd6495c66b667bf5503fa1bc7ea3e 100644 --- a/packages/file-handling/src/clipboard.js +++ b/packages/file-handling/src/clipboard.js @@ -512,7 +512,15 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { openFileSink() { const fileSink = this._("#file-sink-clipboard"); if ( fileSink ) { - this._("#file-sink-clipboard").files = Object.create(this.tabulatorTable.getSelectedData().length > 0 ? this.tabulatorTable.getSelectedData() : this.clipboardFiles.files); + let files = Array(); + if (this.tabulatorTable.getSelectedData().length > 0) { + this.tabulatorTable.getSelectedData().forEach(fileObject => { + files.push(fileObject.file); + }); + } else { + files = this.clipboardFiles.files + } + this._("#file-sink-clipboard").files = Object.create(files); this._("#file-sink-clipboard").openDialog(); } }