mirror of
https://github.com/pretix/pretix.git
synced 2026-09-12 16:04:42 +00:00
[A11y] Form JavaScript: Support for <button formnovalidate>
This commit is contained in:
@@ -234,6 +234,7 @@ var form_handlers = function (el) {
|
||||
|
||||
function setup_basics(el) {
|
||||
el.find("form").attr("novalidate", true).on("submit", function (e) {
|
||||
if (e.originalEvent.submitter.formNoValidate) return;
|
||||
if (!this.checkValidity()) {
|
||||
var input = this.querySelector(":invalid:not(fieldset)");
|
||||
(input.labels[0] || input).scrollIntoView();
|
||||
|
||||
Reference in New Issue
Block a user