diff --git a/src-web/components/core/Editor/twig/placeholder.ts b/src-web/components/core/Editor/twig/placeholder.ts index a895e819..7f921039 100644 --- a/src-web/components/core/Editor/twig/placeholder.ts +++ b/src-web/components/core/Editor/twig/placeholder.ts @@ -9,7 +9,7 @@ class PlaceholderWidget extends WidgetType { super(); } eq(other: PlaceholderWidget) { - return this.name == other.name; + return this.name == other.name && this.isExistingVariable == other.isExistingVariable; } toDOM() { const elt = document.createElement('span');