Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dsfr4drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
dsfr4drupal
Commits
fe341951
Commit
fe341951
authored
9 months ago
by
Sébastien Brindle
Browse files
Options
Downloads
Patches
Plain Diff
Fix form novalidate attribute on webform.
parent
c344ef55
Branches
Branches containing commit
Tags
1.1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/form.theme
+10
-1
10 additions, 1 deletion
includes/form.theme
with
10 additions
and
1 deletion
includes/form.theme
+
10
−
1
View file @
fe341951
...
...
@@ -9,7 +9,6 @@ declare(strict_types=1);
use
Drupal\Component\Utility\Crypt
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Render\Element
;
/**
* Implements hook_form_FORM_ID_alter() for "node_preview_form_select".
...
...
@@ -59,6 +58,16 @@ function dsfr4drupal_preprocess_form(array &$variables): void {
}
}
/**
* Implements hook_preprocess_HOOK() for "webform".
*/
function
dsfr4drupal_preprocess_webform
(
array
&
$variables
):
void
{
// Disable browser validation of form fields.
if
(
theme_get_setting
(
'form_novalidate'
))
{
$variables
[
'attributes'
][
'novalidate'
]
=
'novalidate'
;
}
}
/**
* Implements hook_preprocess_HOOK() for "form_element".
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment