Stop FormHelper from emitting inline validity handlers
Required fields got generated oninvalid/oninput attributes, which the CSP blocks and logs on every page and when parsing dashboard fragments. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ce2627d03a
commit
220227fa86
2 files changed
+4
No files matched your search
@@ -38,5 +38,7 @@ class AppView extends View
|
||||
public function initialize(): void
|
||||
{
|
||||
$this->addHelper('Format');
|
||||
// No generated oninvalid/oninput handlers: the CSP blocks inline event handlers.
|
||||
$this->addHelper('Form', ['autoSetCustomValidity' => false]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user