mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Fix canceling file selector on Windows Edge sometimes blocks UI (#257)
This commit is contained in:
parent
5d709966af
commit
1f3dd080a0
1 changed files with 3 additions and 0 deletions
|
@ -593,6 +593,9 @@ class PeerUI {
|
|||
_onFilesSelected(e) {
|
||||
const $input = e.target;
|
||||
const files = $input.files;
|
||||
|
||||
if (files.length === 0) return;
|
||||
|
||||
Events.fire('files-selected', {
|
||||
files: files,
|
||||
to: this._peer.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue