Skip to content

Commit

Permalink
MDL-81066 core_form: Validate form fields on submit only
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Mar 18, 2024
1 parent 757be30 commit 79038ab
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 11 deletions.
3 changes: 0 additions & 3 deletions lib/formslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2742,9 +2742,6 @@ function validate_' . $this->_formName . '_' . $escapedElementName . '(element,
}
}
document.getElementById(\'' . $elem->_attributes['id'] . '\').addEventListener(\'blur\', function(ev) {
' . $valFunc . '
});
document.getElementById(\'' . $elem->_attributes['id'] . '\').addEventListener(\'change\', function(ev) {
' . $valFunc . '
});
Expand Down
2 changes: 1 addition & 1 deletion theme/boost/amd/build/form-display-errors.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 79038ab

Please sign in to comment.