From b3899e86dd83f99ffd60ab1d3d7f7525e7e07b61 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 30 Oct 2023 09:09:46 -0600 Subject: [PATCH] Et2Select: Stop sidemenu scrolling when scrolling through options --- api/js/etemplate/Et2Select/Et2Select.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index bf0f347e71..b4003f01b2 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -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()}