From 146836829095b554d1a6c98007f95968a8202956 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 23 Jun 2021 22:32:36 +0200 Subject: [PATCH] Rerender component on tag update --- src/dom_components/model/Component.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 85c5ca300..5dddfd330 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -406,14 +406,11 @@ const Component = Backbone.Model.extend(Styleable).extend( }, /** - * Once the tag is updated I have to remove the node and replace it + * Once the tag is updated I have to rerender the element * @private */ tagUpdated() { - const coll = this.collection; - const at = coll.indexOf(this); - coll.remove(this); - coll.add(this, { at }); + this.trigger('rerender'); }, /**