Skip to content

Commit 148d39d

Browse files
committed
Merge branch 'MAGETWO-40157' into last_bugs
2 parents 72e7f57 + 6928ed3 commit 148d39d

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

app/code/Magento/Ui/view/base/web/js/grid/filters/filters.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ define([
4040
return Collapsible.extend({
4141
defaults: {
4242
template: 'ui/grid/filters/filters',
43-
applied: {},
44-
filters: {},
43+
applied: {
44+
placeholder: true
45+
},
46+
filters: {
47+
placeholder: true
48+
},
4549
chipsConfig: {
4650
name: '${ $.name }_chips',
4751
provider: '${ $.chipsConfig.name }',
@@ -151,25 +155,11 @@ define([
151155
* @returns {Filters} Chainable.
152156
*/
153157
cancel: function () {
154-
this.convertToObject();
155158
this.set('filters', utils.copy(this.applied));
156159

157160
return this;
158161
},
159162

160-
/**
161-
* Convert empty array to empty object.
162-
*
163-
* @returns {Filters} Chainable.
164-
*/
165-
convertToObject: function() {
166-
if ( _.isArray(this.applied) && _.isEmpty(this.applied) ) {
167-
this.applied = {};
168-
}
169-
170-
return this;
171-
},
172-
173163
/**
174164
* Tells wether filters pannel should be opened.
175165
*

app/code/Magento/Ui/view/base/web/js/grid/search/search.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ define([
1616
template: 'ui/grid/search/search',
1717
placeholder: $t('Search by keyword'),
1818
label: $t('Keyword'),
19+
value: '',
1920
imports: {
2021
inputValue: 'value',
2122
updatePreview: 'value'

0 commit comments

Comments
 (0)