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

Bug: Cant submit form when using drag-and-drop on required attachment field #111

Open
mbarde opened this issue Aug 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mbarde
Copy link
Contributor

mbarde commented Aug 5, 2024

What?

If a form has a required attachment field, it can not be submitted when user inputs file via drag-and-drop.

Steps to reproduce

  1. Create form
  2. Add attachment field
  3. Mark it as required
  4. Save
  5. Drag-and-drop file into this attachment field
  6. Try to submit form
  7. Nothing happens

Tested in Firefox and Chrome.

Versions

  • Volto 17.18.2
  • Plone 6.0.11
  • volto-form-block 3.9.2.
  • collective.volto.formsupport 3.1.0
@mbarde
Copy link
Contributor Author

mbarde commented Aug 5, 2024

Reason seems to be that the browsers form validation does not recognize the field as filled when using drag-and-drop on it.

I create a PR with a fix that basically just adds a dummy file to the relevant input element to solve this issue: #112

Would be nice if someone could confirm this issue and my fix.

@mbarde mbarde added the bug Something isn't working label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant