Skip to content

Commit cfbe6ee

Browse files
committed
PB-41: Multiple AJAX requests while searching in ui-select in PageBuilder
- Debounce requests using Knockout's notifyWhenChangesStop for Product - Product is the only UrlInput type with searchUrl
1 parent d69f3e8 commit cfbe6ee

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Catalog/Ui/Component/UrlInput

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Ui/Component/UrlInput/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function getConfig(): array
4646
'template' => 'ui/grid/filters/elements/ui-select',
4747
'searchUrl' => $this->urlBuilder->getUrl('catalog/product/search'),
4848
'filterPlaceholder' => __('Product Name or SKU'),
49+
'filterRateLimitMethod' => 'notifyWhenChangesStop',
4950
'isDisplayEmptyPlaceholder' => true,
5051
'emptyOptionsHtml' => __('Start typing to find products'),
5152
'missingValuePlaceholder' => __('Product with ID: %s doesn\'t exist'),

0 commit comments

Comments
 (0)