getgrav / getgrav/grav-plugin-form
File upload (dropzone): Unable to remove file if over limit
- Dominant language
- PHP
- Stars
- 64
- Forks
- 80
- Avg merge
- 10h 13m
- Merged PRs (30d)
- 9
Description
If the form sets a limit on number of files (e.g. `multiple: false`) and you drop more than one file, you cannot remove this file, because the error message blocks the remove button.
Removing the first file still lets the error message pop up over the (then only) file that was superfluous in the first place.
Example:
```
form:
name: Kontaktformular
(...)
Dateianhang:
type: file
multiple: false
destination: '@self'
autofocus: false
filesize: 5
validate:
required: false
accept:
- 'image/*'
- application/pdf
```
results in:

The error message blocks the x to remove the file.
There are actually a few pixels left and right of the bubble tail, but it's ofttimes a real challenge to find & click them.
Removing the first file keeps the error message popping up over the, then only, file left:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.