Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 - Drag-and-drop functionality for input files not working on Firefox #9808

Closed
phanhung1309 opened this issue Nov 21, 2024 · 4 comments
Closed

Comments

@phanhung1309
Copy link

phanhung1309 commented Nov 21, 2024

Reproduction url

https://stackblitz.com/edit/angular-bonkib?file=src%2Fapp%2Fapp.component.ts

Description

The input-files component does not support drag-and-drop functionality when used on the Firefox browser. While this feature works as expected on other browsers like Chrome, attempting to drag and drop a file on Firefox results in no action.

Steps to reproduce:

  1. Open the input-files component example in Firefox.
  2. Try dragging a file to the input area.
  3. Observe that no files are accepted, and the drag-and-drop event is not triggered.

Firefox:
Image

Chrome:
Image

Taiga UI version

4.16.0

Browser Used

Firefox

OS Used

Windows

@hakimio
Copy link
Contributor

hakimio commented Nov 22, 2024

It works correctly for me with Firefox v132 and Windows 10. Do you have some extensions or some custom configuration which might be interfering with it?

Image

@phanhung1309
Copy link
Author

I am using Windows 11 and Firefox version 132.0.2.
I can still drag and drop files from the Windows file selection window, but if I click to open the dialog box to drag and drop, it doesn't work.
https://github.com/user-attachments/assets/aeb304ed-c2ab-4dc9-b8fc-bce14978bbd4

@hakimio
Copy link
Contributor

hakimio commented Nov 22, 2024

You should update the reproduction steps since normal dnd works fine in Firefox, just the strange use-case of dragging from the file selection dialog doesn't work. Might as well be a Firefox issue.

@waterplea
Copy link
Collaborator

This is how Firefox and input files work, you can reproduce it with vanilla input:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file

@waterplea waterplea closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants