Hello Alex, hello everyone,
There is a regression introduced with that LTS version: [
JENKINS-70662] Built-in validations are broken when inside an `
optionalBlock`.
The particular change that led to this regression is the submit button in form/submit.jelly which was changed from <input type="submit" to <button.
The error which is faced (
An invalid form control with name='' is not focusable) is likely a browser validation error (
reference).
Different solutions could be imagined, among some tested:
- Adding novalidate="true" to the form tag in form.jelly works, with a concern about f:form being sufficiently commonly used to be a valid approach?
- Adding formNoValidate="true" to the submit button works as well
Other solutions could be considered, but might be more difficult to put in place?
I'm not familiar with how OSS LTS releases are managed, so could you please let me know how we could move forward with that concern? Would you like me to submit a Pull Request to core with one of these fixes?
Thanks a lot for your help and attention, have a great day!
Antoine