Stop scrolling new tag into view, it causes calendar sidemenu to get stuck

This commit is contained in:
nathan 2022-12-08 14:47:02 -07:00
parent ce64ddf9e0
commit 4b4d6fe184

View File

@ -759,10 +759,13 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
// Scroll the new tag into view // Scroll the new tag into view
if(event.detail && event.detail.item) if(event.detail && event.detail.item)
{ {
// Causes sidemenu (calendar) to scroll to top & get stuck
/*
this.updateComplete.then(() => this.updateComplete.then(() =>
{ {
this.shadowRoot.querySelector("et2-tag[value='" + event.detail.item.value.replace(/'/g, "\\\'") + "']")?.scrollIntoView(); this.shadowRoot.querySelector("et2-tag[value='" + event.detail.item.value.replace(/'/g, "\\\'") + "']")?.scrollIntoView({block: "nearest"});
}); });
*/
} }
} }
else if(!this.multiple && this.searchEnabled) else if(!this.multiple && this.searchEnabled)