From 60284d79bc538632661e2f00ef47aeb191988a91 Mon Sep 17 00:00:00 2001 From: David Marcu Date: Wed, 15 Jan 2020 12:21:09 +0200 Subject: [PATCH] fix: unregister form element when disconnected --- packages/textarea/src/LionTextarea.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/textarea/src/LionTextarea.js b/packages/textarea/src/LionTextarea.js index 1e5f36bd5..0584fd114 100644 --- a/packages/textarea/src/LionTextarea.js +++ b/packages/textarea/src/LionTextarea.js @@ -57,6 +57,9 @@ export class LionTextarea extends LionField { } disconnectedCallback() { + if (super.disconnectedCallback) { + super.disconnectedCallback(); + } autosize.destroy(this._inputNode); }