@@ -32,7 +32,7 @@ export default {
3232 return {
3333 // Flag for displaying which empty slot to show and some event triggering
3434 isFiltered : false ,
35- // Where we store the copy of the (sanitized) filter citeria ( after debouncing)
35+ // Where we store the copy of the filter citeria after debouncing
3636 localFilter : null
3737 }
3838 } ,
@@ -67,7 +67,7 @@ export default {
6767 filteredItems ( ) {
6868 const items = this . localItems || [ ]
6969 // Note the criteria is debounced
70- const criteria = this . localFilter
70+ const criteria = this . filterSanitize ( this . localFilter )
7171
7272 // Resolve the filtering function, when requested
7373 // We prefer the provided filtering function and fallback to the internal one
@@ -106,11 +106,11 @@ export default {
106106 if ( timeout ) {
107107 // If we have a debounce time, delay the update of this.localFilter
108108 this . filterTimer = setTimeout ( ( ) => {
109- this . localFilter = this . filterSanitize ( this . filter )
109+ this . localFilter = this . filter
110110 } , timeout )
111111 } else {
112112 // Otherwise, immediately update this.localFilter
113- this . localFilter = this . filterSanitize ( this . filter )
113+ this . localFilter = this . filter
114114 }
115115 } ,
116116 // Watch for changes to the filter criteria and filtered items vs localItems).
@@ -149,7 +149,7 @@ export default {
149149 created ( ) {
150150 // If filter is "pre-set", set the criteria
151151 // This will trigger any watchers/dependants
152- this . localFilter = this . filterSanitize ( this . filter )
152+ this . localFilter = this . filter
153153 // Set the initial filtered state.
154154 // In a nextTick so that we trigger a filtered event if needed
155155 this . $nextTick ( ( ) => {
0 commit comments