File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
app/code/Magento/PageBuilder
view/adminhtml/web/js/form/element Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 225
225
<type name =" Magento\PageBuilder\Model\Catalog\Sorting" >
226
226
<arguments >
227
227
<argument name =" sortClasses" xsi : type =" array" >
228
+ <item name =" position" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Position</item >
228
229
<item name =" date_newest_top" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Date\NewestTop</item >
229
230
<item name =" date_oldest_top" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Date\OldestTop</item >
230
231
<item name =" name_ascending" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Name\Ascending</item >
235
236
<item name =" high_stock_first" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Stock\Descending</item >
236
237
<item name =" price_high_to_low" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Price\HighToLow</item >
237
238
<item name =" price_low_to_high" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Price\LowToHigh</item >
238
- <item name =" position" xsi : type =" string" >Magento\PageBuilder\Model\Catalog\Sorting\Position</item >
239
239
</argument >
240
240
</arguments >
241
241
</type >
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ define([
17
17
18
18
/** @inheritdoc */
19
19
onUpdate : function ( ) {
20
- this . transferredValue = null ;
20
+ if ( ! this . updatedByFilter ) {
21
+ this . transferredValue = null ;
22
+ } else {
23
+ this . updatedByFilter = false ;
24
+ }
21
25
22
26
return this . _super ( ) ;
23
27
} ,
@@ -38,6 +42,7 @@ define([
38
42
return ! excludeOptions || excludedOptionsArray . indexOf ( item . value ) === - 1 ;
39
43
} ) ;
40
44
45
+ this . updatedByFilter = true ;
41
46
this . setOptions ( result ) ;
42
47
43
48
this . value ( this . transferredValue ? this . transferredValue : initialValue ) ;
You can’t perform that action at this time.
0 commit comments