Skip to content

Commit c9207b6

Browse files
committed
MAGETWO-90347: Close Icon displays for attribute set on catalog product edit form
Set isRemoveSelectedIcon to false by default in ui-select, and set it to true in url inputs
1 parent bed17e0 commit c9207b6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function getConfig(): array
4646
'sortOrder' => 30,
4747
'missingValuePlaceholder' => __('Category with ID: %s doesn\'t exist'),
4848
'isDisplayMissingValuePlaceholder' => true,
49+
'isRemoveSelectedIcon' => true,
4950
];
5051
}
5152
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function getConfig(): array
5050
'emptyOptionsHtml' => __('Start typing to find products'),
5151
'missingValuePlaceholder' => __('Product with ID: %s doesn\'t exist'),
5252
'isDisplayMissingValuePlaceholder' => true,
53+
'isRemoveSelectedIcon' => true,
5354
'validationUrl' => $this->urlBuilder->getUrl('catalog/product/getSelected'),
5455
];
5556
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ define([
176176
pageLimit: 50,
177177
deviation: 30,
178178
validationLoading: false,
179-
isRemoveSelectedIcon: true,
179+
isRemoveSelectedIcon: false,
180180
debounce: 300,
181181
missingValuePlaceholder: $t('Entity with ID: %s doesn\'t exist'),
182182
isDisplayMissingValuePlaceholder: false,

0 commit comments

Comments
 (0)