File tree Expand file tree Collapse file tree 2 files changed +7
-16
lines changed
app/code/Magento/Ui/view/base/web/js/grid Expand file tree Collapse file tree 2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,12 @@ define([
40
40
return Collapsible . extend ( {
41
41
defaults : {
42
42
template : 'ui/grid/filters/filters' ,
43
- applied : { } ,
44
- filters : { } ,
43
+ applied : {
44
+ placeholder : true
45
+ } ,
46
+ filters : {
47
+ placeholder : true
48
+ } ,
45
49
chipsConfig : {
46
50
name : '${ $.name }_chips' ,
47
51
provider : '${ $.chipsConfig.name }' ,
@@ -151,25 +155,11 @@ define([
151
155
* @returns {Filters } Chainable.
152
156
*/
153
157
cancel : function ( ) {
154
- this . convertToObject ( ) ;
155
158
this . set ( 'filters' , utils . copy ( this . applied ) ) ;
156
159
157
160
return this ;
158
161
} ,
159
162
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
-
173
163
/**
174
164
* Tells wether filters pannel should be opened.
175
165
*
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ define([
16
16
template : 'ui/grid/search/search' ,
17
17
placeholder : $t ( 'Search by keyword' ) ,
18
18
label : $t ( 'Keyword' ) ,
19
+ value : '' ,
19
20
imports : {
20
21
inputValue : 'value' ,
21
22
updatePreview : 'value'
You can’t perform that action at this time.
0 commit comments