diff --git a/api/js/etemplate/et2_widget_taglist.ts b/api/js/etemplate/et2_widget_taglist.ts index d019d4a7e4..5a91785e6b 100644 --- a/api/js/etemplate/et2_widget_taglist.ts +++ b/api/js/etemplate/et2_widget_taglist.ts @@ -636,6 +636,11 @@ export class et2_taglist extends et2_selectbox implements et2_IResizeable this.taglist.setData(function(query, cfg) { return widget._data.call(widget,query, cfg); }); + + // if value has already been set, re-set it by it's id(s) + if (this.options.select_options.length && this.options.value.length) { + this.set_value(this.options.value.map((v) => v.id)); + } } set_disabled(disabled)