sas-ui 0.8.157 → 0.8.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4488,6 +4488,13 @@ let SasSelect = class {
4488
4488
  listElement.style.maxHeight = '200px';
4489
4489
  listElement.style.overflowY = 'auto';
4490
4490
  listElement.subtextPosition = this.subtextPosition;
4491
+ // prevents dropdown container from closing when user clicks/holds
4492
+ // scroll bar with cursor
4493
+ listElement.addEventListener("mousedown", function (event) {
4494
+ if (event.target.tagName === "SAS-LIST") {
4495
+ event.preventDefault();
4496
+ }
4497
+ });
4491
4498
  }
4492
4499
  // has pre select element
4493
4500
  const selectedElement = this.getSelectedElement();
@@ -156,6 +156,13 @@ export class SasSelect {
156
156
  listElement.style.maxHeight = '200px';
157
157
  listElement.style.overflowY = 'auto';
158
158
  listElement.subtextPosition = this.subtextPosition;
159
+ // prevents dropdown container from closing when user clicks/holds
160
+ // scroll bar with cursor
161
+ listElement.addEventListener("mousedown", function (event) {
162
+ if (event.target.tagName === "SAS-LIST") {
163
+ event.preventDefault();
164
+ }
165
+ });
159
166
  }
160
167
  // has pre select element
161
168
  const selectedElement = this.getSelectedElement();
@@ -12370,6 +12370,13 @@ let SasSelect$1 = class extends H {
12370
12370
  listElement.style.maxHeight = '200px';
12371
12371
  listElement.style.overflowY = 'auto';
12372
12372
  listElement.subtextPosition = this.subtextPosition;
12373
+ // prevents dropdown container from closing when user clicks/holds
12374
+ // scroll bar with cursor
12375
+ listElement.addEventListener("mousedown", function (event) {
12376
+ if (event.target.tagName === "SAS-LIST") {
12377
+ event.preventDefault();
12378
+ }
12379
+ });
12373
12380
  }
12374
12381
  // has pre select element
12375
12382
  const selectedElement = this.getSelectedElement();
@@ -4484,6 +4484,13 @@ let SasSelect = class {
4484
4484
  listElement.style.maxHeight = '200px';
4485
4485
  listElement.style.overflowY = 'auto';
4486
4486
  listElement.subtextPosition = this.subtextPosition;
4487
+ // prevents dropdown container from closing when user clicks/holds
4488
+ // scroll bar with cursor
4489
+ listElement.addEventListener("mousedown", function (event) {
4490
+ if (event.target.tagName === "SAS-LIST") {
4491
+ event.preventDefault();
4492
+ }
4493
+ });
4487
4494
  }
4488
4495
  // has pre select element
4489
4496
  const selectedElement = this.getSelectedElement();