Et2Select: Stop sidemenu scrolling when scrolling through options

This commit is contained in:
nathan 2023-10-30 09:09:46 -06:00
parent 9b2d208e8e
commit b3899e86dd

View File

@ -841,6 +841,10 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
.value=${value}
@sl-change=${this.handleValueChange}
@mouseup=${this.handleOptionClick}
@mousewheel=${
// Grab & stop mousewheel to prevent scrolling sidemenu when scrolling through options
e => e.stopImmediatePropagation()
}
>
${icon}
${this._emptyLabelTemplate()}