Skip to content

Commit c9d7e3a

Browse files
committed
MAGETWO-89675: Build Stabilization
Protect against loading more options when searchOptions is disabled
1 parent 33c9c7a commit c9d7e3a

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+4
-0
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/ui-select.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,10 @@ define([
11681168
var clientHight = event.target.scrollTop + event.target.clientHeight,
11691169
scrollHeight = event.target.scrollHeight;
11701170

1171+
if (!this.searchOptions) {
1172+
return;
1173+
}
1174+
11711175
if (clientHight > scrollHeight - this.deviation && !this.isSearchKeyCached(data.filterInputValue())) {
11721176
this.loadOptions(data.filterInputValue());
11731177
}

0 commit comments

Comments
 (0)