mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:22:14 +01:00
Fix free entries didn't get added properly for static option selects
This commit is contained in:
parent
c45661bbe4
commit
df0b4f3afb
@ -276,7 +276,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
|
|
||||||
// Missing any of the required attributes? Don't change anything.
|
// Missing any of the required attributes? Don't change anything.
|
||||||
// If readonly, skip it
|
// If readonly, skip it
|
||||||
if(!this.searchEnabled && !this.editModeEnabled || this.readonly)
|
if(!this.searchEnabled && !this.editModeEnabled && !this.allowFreeEntries || this.readonly)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -777,7 +777,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
// Make sure not to double-add
|
// Make sure not to double-add
|
||||||
if(!this.select_options.find(o => o.value == text))
|
if(!this.select_options.find(o => o.value == text))
|
||||||
{
|
{
|
||||||
this.select_options.push(<SelectOption>{
|
this.__select_options.push(<SelectOption>{
|
||||||
value: text,
|
value: text,
|
||||||
label: text
|
label: text
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user