Skip to content

Add alternative for assignbrowse/assigndrop that can be called from outside#10

Merged
adi64 merged 4 commits intomainfrom
7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside
Mar 13, 2023
Merged

Add alternative for assignbrowse/assigndrop that can be called from outside#10
adi64 merged 4 commits intomainfrom
7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside

Conversation

@UniquePanda
Copy link

Merge after #8

There actually already were two functions for exactly that purpose.
handleDropEvent can be called with an external DragEvent when a file was dropped somewhere.
handleChangeEvent can be called with an external InputEvent when files were added to an input element.

The only thing I had to change was to move some CSS handling from handleDropEvent into an own function, so that this can still be done when assignDrop was used, but is not always done when handleDropEvent is called from the outside.

Additionally I also did some minor changes tot he test.html. This file is very barebones but maybe we can use it in the future and now it at least works again. 😄

@UniquePanda UniquePanda self-assigned this Feb 27, 2023
@UniquePanda UniquePanda force-pushed the 7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside branch from 0520407 to 86d87a4 Compare February 28, 2023 10:20
@UniquePanda UniquePanda force-pushed the 7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside branch from 86d87a4 to cd3c33c Compare March 1, 2023 11:23
@UniquePanda UniquePanda force-pushed the 7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside branch from cd3c33c to 1fa66e0 Compare March 7, 2023 12:51
@UniquePanda UniquePanda force-pushed the 7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside branch from 1fa66e0 to ecf6e32 Compare March 13, 2023 11:33
@UniquePanda UniquePanda force-pushed the 7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside branch from ecf6e32 to 133e9f0 Compare March 13, 2023 11:41
@adi64 adi64 merged commit 264561f into main Mar 13, 2023
@adi64 adi64 deleted the 7-add-alternative-for-assignbrowseassigndrop-that-can-be-called-from-outside branch March 13, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add alternative for assignBrowse/assignDrop that can be called from outside

3 participants