HyphaApp / hypha

Submission management software for open calls
http://docs.hypha.app/
BSD 3-Clause "New" or "Revised" License
69 stars 38 forks source link

The ScoredAnswerWidget used in review forms breaks forms if set to required #4179

Open frjo opened 1 month ago

frjo commented 1 month ago

This is a long standing bug I believe. The textarea gets set to "required" even when hidden by the TinyMCE editor.

The rich text field does not have this issue. So it is the implementation in ScoredAnswerWidget that likely is at fault.

[Error] An invalid form control with name='71bfe95d-89c5-401b-ae7a-778e91d5c8c5_0' is not focusable.

https://github.com/HyphaApp/hypha/blob/5eb6cae7edd91fae8b640d3cb94606b4a7e99fd8/hypha/apply/review/fields.py#L10-L54