osl-base-extended 1.1.46 → 1.1.47

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.
@@ -1607,11 +1607,14 @@ class OslAutocomplete extends baseComponent {
1607
1607
  dropdownStyle = {};
1608
1608
  filteredItems = [];
1609
1609
  touched = false;
1610
- scrollHandler = () => {
1611
- if (this._showDropdown) {
1612
- this._showDropdown = false;
1613
- this.cdr.markForCheck();
1614
- }
1610
+ scrollHandler = (event) => {
1611
+ if (!this._showDropdown)
1612
+ return;
1613
+ const dropdown = this.elRef.nativeElement.querySelector('.dropdown');
1614
+ if (dropdown && dropdown.contains(event.target))
1615
+ return;
1616
+ this._showDropdown = false;
1617
+ this.cdr.markForCheck();
1615
1618
  };
1616
1619
  constructor(elRef, cdr) {
1617
1620
  super();