mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Fix some issues from the shoelace version bump
- SlSelect.getItemLabel() not there anymore - SlSelect.menuItems is now a real list, and fails when parent tries to write to it - Tabs didn't hide properly when not active, giving a scrollbar
This commit is contained in:
parent
6b1a477de8
commit
098c2ab3f0
@ -406,7 +406,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
||||
{
|
||||
const tag = <Et2Tag>document.createElement(this.tagTag);
|
||||
tag.value = item.value;
|
||||
tag.textContent = this.getItemLabel(item);
|
||||
tag.textContent = item.getTextLabel().trim();
|
||||
tag.class = item.classList.value + " search_tag";
|
||||
if(this.size)
|
||||
{
|
||||
@ -453,11 +453,6 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
||||
return "";
|
||||
}
|
||||
|
||||
public get menuItems() : HTMLElement[]
|
||||
{
|
||||
return [...this.querySelectorAll<SlMenuItem>(this.optionTag)];
|
||||
}
|
||||
|
||||
/**
|
||||
* Override parent to always call validate(), as our simple implementation needs to validate on clear as well.
|
||||
*
|
||||
|
@ -42,6 +42,9 @@ export class Et2Tabs extends Et2Widget(SlTabGroup)
|
||||
::slotted(et2-tab-panel) {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
::slotted(et2-tab-panel:not([active])) {
|
||||
display: none;
|
||||
}
|
||||
`
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user