mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
Remove duplicate condition
This commit is contained in:
parent
a9ffe0e617
commit
9fbcc5c5a7
@ -1368,7 +1368,7 @@ return (function () {
|
||||
}
|
||||
|
||||
function validateElement(element, errors) {
|
||||
if (element.checkValidity && element.willValidate) {
|
||||
if (element.willValidate) {
|
||||
triggerEvent(element, "htmx:validation:validate")
|
||||
if (!element.checkValidity()) {
|
||||
errors.push({elt: element, message:element.validationMessage, validity:element.validity});
|
||||
|
Loading…
x
Reference in New Issue
Block a user