From 9cd0ed364fd440353c0b4a94bb1e5001ea9415c0 Mon Sep 17 00:00:00 2001 From: Wessel Loth Date: Thu, 19 Mar 2020 10:25:40 +0100 Subject: [PATCH] fix(form): remove correct reset event listener on teardown --- packages/form/src/LionForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form/src/LionForm.js b/packages/form/src/LionForm.js index 257716533..9080972c6 100644 --- a/packages/form/src/LionForm.js +++ b/packages/form/src/LionForm.js @@ -57,6 +57,6 @@ export class LionForm extends LionFieldset { __teardownEventsForLionForm() { this._formNode.removeEventListener('submit', this._submit); - this._formNode.removeEventListener('rest', this._reset); + this._formNode.removeEventListener('reset', this._reset); } }