mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
IMPR: form/field validation better memory cleaning
This commit is contained in:
parent
52cade10c8
commit
707e5e1721
@ -56,7 +56,7 @@ class ValidateField {
|
||||
this.#field.removeEventListener('change', this.validate)
|
||||
this.#field.removeEventListener('focusout', this.validate)
|
||||
|
||||
this.#field.ValidateField = null
|
||||
delete this.#field.ValidateField
|
||||
|
||||
this.#field.classList.remove(`${NAME}--active`)
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ class ValidateForm {
|
||||
|
||||
this.#form.removeEventListener('submit', this.submitHandler)
|
||||
|
||||
this.#form.ValidateForm = null
|
||||
delete this.#form.ValidateForm
|
||||
this.#form.classList.remove(`${NAME}--active`)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user