Merge pull request #649 from ing-bank/fix/form-reset-remove-event-listener
fix(form): remove correct reset event listener on teardown
This commit is contained in:
commit
53d8eb1931
1 changed files with 1 additions and 1 deletions
|
|
@ -57,6 +57,6 @@ export class LionForm extends LionFieldset {
|
||||||
|
|
||||||
__teardownEventsForLionForm() {
|
__teardownEventsForLionForm() {
|
||||||
this._formNode.removeEventListener('submit', this._submit);
|
this._formNode.removeEventListener('submit', this._submit);
|
||||||
this._formNode.removeEventListener('rest', this._reset);
|
this._formNode.removeEventListener('reset', this._reset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue