Calendar: Fix sidebox owner could not select options

This commit is contained in:
nathan
2023-10-02 16:06:25 -06:00
parent 72112023e8
commit efe0eff776
3 changed files with 8 additions and 22 deletions

View File

@@ -195,7 +195,7 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
/* Hide options that do not match current search text */
.no-match {
[searching] .no-match {
display: none;
}
/* Different cursor for editable tags */
@@ -1043,6 +1043,8 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
// Stop timeout timer
clearTimeout(this._searchTimeout);
this.setAttribute("searching", "");
// Show a spinner
let spinner = document.createElement("sl-spinner");
spinner.slot = "expand-icon";
@@ -1066,6 +1068,7 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
this.remoteSearch(this._searchInputNode.value, this.searchOptions)
]).then(async() =>
{
this.removeAttribute("searching");
// Remove spinner
spinner.remove();
@@ -1102,7 +1105,7 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
let target = this._optionTargetNode || this;
this._keepSelectedRemote();
this._remote_options = [];
// Not searching anymore, clear flag