Use formnovalidate attribute for auto-save button

Created on 24 August 2025, 16 days ago

Problem/Motivation

Over in πŸ› Native browser form validation does not fire when submit buttons use #ajax Needs work we are currently making sure that submit buttons in Drupal ensure that the <form> is valid before it's going to be submitted. I figured out there is a problem with Autosave Form module since it's adding the hidden submit button that is automatically being clicked.

The result is a direct browser warning that the title field is not filled. We can easily fix this by just adding the formnovalidate attribute to the submit button, which is just for browser validation and does not interfere with Drupal's submit handling.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany yannickoo Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024