mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 11:29:23 +01:00
SearchMixin: Fix select option not having class causes JS error
Fixes addressbook edit popup does not resize
This commit is contained in:
parent
81a6c13010
commit
881d3c05c5
@ -378,7 +378,8 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
||||
if(changedProperties.has("value") && this.value)
|
||||
{
|
||||
// Overridden to add options if allowFreeEntries=true
|
||||
if(this.allowFreeEntries && typeof this.value == "string" && !this.select_options.find(o => o.value == this.value && !o.class.includes('remote')))
|
||||
if(this.allowFreeEntries && typeof this.value == "string" && !this.select_options.find(o => o.value == this.value &&
|
||||
(!o.class || o.class && !o.class.includes('remote'))))
|
||||
{
|
||||
this.createFreeEntry(this.value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user