From 5ce66fcfbd36a88f7719a88dcdfec80038eb3342 Mon Sep 17 00:00:00 2001 From: Sebastian Weigand Date: Thu, 22 Aug 2024 11:21:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20wrong=20tag=20index=20in?= =?UTF-8?q?=20TagsInput=20when=20updated=20via=20python=20(#3862)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/controls/src/widget_tagsinput.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/controls/src/widget_tagsinput.ts b/packages/controls/src/widget_tagsinput.ts index 5c8ad45bdb..e0ba3acaca 100644 --- a/packages/controls/src/widget_tagsinput.ts +++ b/packages/controls/src/widget_tagsinput.ts @@ -167,6 +167,7 @@ abstract class TagsInputBaseView extends DOMWidgetView { this.tags = []; const value: Array = this.model.get('value'); + this.inputIndex = value.length; for (const idx in value) { const index = parseInt(idx);