mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 03:54:24 +08:00
Fix drag and drop for file input
This commit is contained in:
parent
7427a47412
commit
d0e493e9df
1 changed files with 0 additions and 2 deletions
|
@ -792,12 +792,10 @@ const Session = {
|
|||
});
|
||||
|
||||
this.el.addEventListener("dragover", (event) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
this.el.addEventListener("drop", (event) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
const insertDropEl = event.target.closest(`[data-el-insert-drop-area]`);
|
||||
|
|
Loading…
Add table
Reference in a new issue