Skip to content

Commit 1344dab

Browse files
committed
Replace datalist children instead of appending
Fixes jupyter-widgets#3681
1 parent cc1f9b8 commit 1344dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/controls/src/widget_string.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export class ComboboxView extends TextView {
671671
o.value = v;
672672
optionFragment.appendChild(o);
673673
}
674-
this.datalist.appendChild(optionFragment);
674+
this.datalist.replaceChildren(...optionFragment.children);
675675
}
676676

677677
isValid(value: string): boolean {

0 commit comments

Comments
 (0)