Skip to content

Commit

Permalink
🩹 Fix wrong tag index in TagsInput when updated via python (#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Aug 22, 2024
1 parent cecd2b0 commit 5ce66fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/controls/src/widget_tagsinput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ abstract class TagsInputBaseView extends DOMWidgetView {
this.tags = [];

const value: Array<any> = this.model.get('value');
this.inputIndex = value.length;
for (const idx in value) {
const index = parseInt(idx);

Expand Down

0 comments on commit 5ce66fc

Please sign in to comment.