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