Skip to content

Commit

Permalink
Media progressive enhancement: drag and drop to fill regular file inp…
Browse files Browse the repository at this point in the history
…ut (with docstring)
  • Loading branch information
jbidoret committed Oct 16, 2024
1 parent d30004f commit 69a3f84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ window.addEventListener('load', () => {
activateCloseSubmenus();
});


// drag and drop trigger regular file input

/**
* Drag and drop files anywhere to fill regular file input
*/
const fileInput = document.getElementById('file');
const fileMenu = fileInput.closest('details');

Expand Down

0 comments on commit 69a3f84

Please sign in to comment.