You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ClearableFileInput at the edition time (when a file has already been uploaded), for files required , let the "required" attribute in the input. The consequence of this, the browser (like Chrome) didn't know a file has already been uploaded, a tooltip appears and the submission of the form is blocked.
The standard Django widget does not show the "required" attribute at any time
Django widget rendering at the creation time
<inputid="id_file" name="file" type="file">
Django widget redering at the edit time, (with file in it)
The ClearableFileInput at the edition time (when a file has already been uploaded), for files required , let the "required" attribute in the input. The consequence of this, the browser (like Chrome) didn't know a file has already been uploaded, a tooltip appears and the submission of the form is blocked.
The standard Django widget does not show the "required" attribute at any time
Django widget rendering at the creation time
Django widget redering at the edit time, (with file in it)
Floppyform widget rendering at the creation time
Floppyform widget rendering at the edition time, with file already uploaded
In the floppyform widget rendering, we clearly see the "required" attribute which does not appear on the Django widget rendering.
Workaround
To avoid this, I rewrite the widget, get_context method actually
The text was updated successfully, but these errors were encountered: