mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:08 +01:00
Fix listbox sometimes lost value
This commit is contained in:
parent
7ba5730251
commit
2b02d4e9ab
@ -151,9 +151,12 @@ export class Et2Listbox extends RowLimitedMixin(Et2widgetWithSelectMixin(SlMenu)
|
|||||||
// Tag used must match this.optionTag, but you can't use the variable directly.
|
// Tag used must match this.optionTag, but you can't use the variable directly.
|
||||||
// Pass option along so SearchMixin can grab it if needed
|
// Pass option along so SearchMixin can grab it if needed
|
||||||
return html`
|
return html`
|
||||||
<sl-menu-item value="${option.value}"
|
<sl-menu-item
|
||||||
|
value="${option.value}"
|
||||||
title="${!option.title || this.noLang ? option.title : this.egw().lang(option.title)}"
|
title="${!option.title || this.noLang ? option.title : this.egw().lang(option.title)}"
|
||||||
class="${option.class}" .option=${option}>
|
class="${option.class}" .option=${option}
|
||||||
|
?checked=${option.value === this.value || this.multiple && this.value.indexOf(option.value) >= 0}
|
||||||
|
>
|
||||||
${icon}
|
${icon}
|
||||||
${this.noLang ? option.label : this.egw().lang(option.label)}
|
${this.noLang ? option.label : this.egw().lang(option.label)}
|
||||||
</sl-menu-item>`;
|
</sl-menu-item>`;
|
||||||
|
Loading…
Reference in New Issue
Block a user