mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix instead of all only last option was selected sometimes
because multiple property was not yet synced to DOM node
This commit is contained in:
parent
e5a6f195dc
commit
7a749a8f54
@ -174,6 +174,7 @@ export class Et2Select extends Et2InvokerMixin(Et2WidgetWithSelect)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
this._inputNode.multiple = true; // in case property is not yet set, selectbox will unselect all other options
|
||||||
this._inputNode.querySelectorAll('option').forEach((el : HTMLOptionElement) =>
|
this._inputNode.querySelectorAll('option').forEach((el : HTMLOptionElement) =>
|
||||||
{
|
{
|
||||||
el.selected = [].concat(value).find(val => val == el.value);
|
el.selected = [].concat(value).find(val => val == el.value);
|
||||||
|
Loading…
Reference in New Issue
Block a user