We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 771c9cf commit 0b7de96Copy full SHA for 0b7de96
src/lib/Room/Room.vue
@@ -1088,7 +1088,7 @@ export default {
1088
const items = pasteEvent.clipboardData?.items
1089
1090
if (items) {
1091
- items.forEach(item => {
+ Array.from(items).forEach(item => {
1092
if (item.type.includes('image')) {
1093
const blob = item.getAsFile()
1094
this.onFileChange([blob])
@@ -1100,7 +1100,7 @@ export default {
1100
this.fileDialog = true
1101
this.focusTextarea()
1102
1103
- files.forEach(async file => {
+ Array.from(files).forEach(async file => {
1104
const fileURL = URL.createObjectURL(file)
1105
const blobFile = await fetch(fileURL).then(res => res.blob())
1106
const typeIndex = file.name.lastIndexOf('.')
0 commit comments