File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/code/Magento/Ui/view/base/web/js/form/element
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ define([
177
177
deviation : 30 ,
178
178
validationLoading : false ,
179
179
isRemoveSelectedIcon : true ,
180
+ debounce : 300 ,
180
181
missingValuePlaceholder : $t ( 'Entity with ID: %s doesn\'t exist' ) ,
181
182
isDisplayMissingValuePlaceholder : false ,
182
183
listens : {
@@ -459,7 +460,7 @@ define([
459
460
}
460
461
461
462
if ( this . searchOptions ) {
462
- return this . loadOptions ( value ) ;
463
+ return _ . debounce ( this . loadOptions . bind ( this , value ) , this . debounce ) ( ) ;
463
464
}
464
465
465
466
this . cleanHoveredElement ( ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ define([
46
46
_ . each ( jQueryMethods , function ( value , key ) {
47
47
$ . fn [ key ] = value ;
48
48
} ) ;
49
-
49
+ $ . ajax = originaljQueryAjax ;
50
50
} ) ;
51
51
52
52
describe ( '"save" method' , function ( ) {
You can’t perform that action at this time.
0 commit comments