Skip to content

Commit

Permalink
implement image-attachment by pasting it
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Jan 6, 2025
1 parent 160bb62 commit 3f51777
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/views/containers/chatroom/SendArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ export default ({
}
},
handlePaste (e) {
if (e.clipboardData.files.length > 0) {
this.fileAttachmentHandler(e.clipboardData.files, true)
return
}
// fix for the edge-case related to 'paste' action when nothing has been typed
// (reference: https://github.com/okTurtles/group-income/issues/2369)
const currVal = this.$refs.textarea.value
Expand Down
Empty file.

0 comments on commit 3f51777

Please sign in to comment.