if value has already been set, re-set it by it's id(s), fixes #60304

This commit is contained in:
Ralf Becker 2021-07-06 14:43:13 +02:00
parent 51b0888b5d
commit 75fddd325b

View File

@ -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)