Fix calendar participant select did not show selected tags while the dropdown was open

Tags were only shown once dropdown was closed
This commit is contained in:
nathan 2023-11-30 10:49:49 -07:00
parent 85593dbcdb
commit 021fc9f136
2 changed files with 4 additions and 5 deletions

View File

@ -115,13 +115,14 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
/* Maximum height + scrollbar on tags (+ other styling) */
::part(tags) {
overflow-y: auto;
margin-left: 0px;
max-height: initial;
min-height: auto;
gap: 0.1rem 0.5rem;
}
:host([rows]) ::part(tags) {
overflow-y: auto;
max-height: calc(var(--rows, 5) * (var(--sl-input-height-medium) * 0.8))
}
@ -132,9 +133,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
/* No rows set, default height limit about 5 rows */
:host(:not([rows])) ::part(tags) {
min-height: inherit;
max-height: 11em;
overflow-y: auto;
}
select:hover {

View File

@ -151,11 +151,11 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
display: none;
}
:host([multiple]) sl-select[open]::part(tags) {
sl-select[open][multiple]::part(tags) {
flex-basis: 100%;
}
:host([multiple]) sl-select[open]::part(combobox) {
sl-select[open][multiple]::part(combobox) {
flex-flow: wrap;
}