@appbaseio/reactivesearch-vue 1.36.5 → 1.36.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +2 -2
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +4 -4
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +4 -4
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/DataSearch.js
CHANGED
|
@@ -131,7 +131,7 @@ var DataSearch = {
|
|
|
131
131
|
normalizedPopularSuggestions: function normalizedPopularSuggestions() {
|
|
132
132
|
return getTopSuggestions(
|
|
133
133
|
// use default popular suggestions if value is empty
|
|
134
|
-
this.currentValue ? this.popularSuggestions : this.defaultPopularSuggestions || [], this.currentValue, this.showDistinctSuggestions);
|
|
134
|
+
this.currentValue ? this.popularSuggestions : this.defaultPopularSuggestions || [], this.currentValue || '', this.showDistinctSuggestions);
|
|
135
135
|
},
|
|
136
136
|
defaultSearchSuggestions: function defaultSearchSuggestions() {
|
|
137
137
|
var isPopularSuggestionsEnabled = this.enablePopularSuggestions;
|
|
@@ -151,7 +151,7 @@ var DataSearch = {
|
|
|
151
151
|
var defaultSuggestions = isPopularSuggestionsEnabled ? [].concat(customNormalizedRecentSearches, customDefaultPopularSuggestions || []) : customNormalizedRecentSearches;
|
|
152
152
|
return getTopSuggestions(
|
|
153
153
|
// use default popular suggestions if value is empty
|
|
154
|
-
defaultSuggestions, this.currentValue, this.showDistinctSuggestions);
|
|
154
|
+
defaultSuggestions, this.currentValue || '', this.showDistinctSuggestions);
|
|
155
155
|
},
|
|
156
156
|
hasCustomRenderer: function hasCustomRenderer() {
|
|
157
157
|
return index.hasCustomRenderer(this);
|
|
@@ -411,7 +411,7 @@ var DataSearch = {
|
|
|
411
411
|
return queryOptions;
|
|
412
412
|
},
|
|
413
413
|
onSuggestions: function onSuggestions(results) {
|
|
414
|
-
return handleOnSuggestions(results, this.$data.currentValue, this);
|
|
414
|
+
return handleOnSuggestions(results, this.$data.currentValue || '', this);
|
|
415
415
|
},
|
|
416
416
|
handleSearchIconClick: function handleSearchIconClick() {
|
|
417
417
|
var currentValue = this.currentValue;
|
|
@@ -479,7 +479,7 @@ var DataSearch = {
|
|
|
479
479
|
isTagAdded = true;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
if (props.strictSelection && !isTagAdded) {
|
|
482
|
+
if (props.strictSelection && !isTagAdded && typeof value === 'string') {
|
|
483
483
|
_this.currentValue = value;
|
|
484
484
|
} else {
|
|
485
485
|
_this.currentValue = '';
|
package/dist/cjs/version.js
CHANGED
package/dist/es/DataSearch.js
CHANGED
|
@@ -124,7 +124,7 @@ var DataSearch = {
|
|
|
124
124
|
normalizedPopularSuggestions: function normalizedPopularSuggestions() {
|
|
125
125
|
return getTopSuggestions(
|
|
126
126
|
// use default popular suggestions if value is empty
|
|
127
|
-
this.currentValue ? this.popularSuggestions : this.defaultPopularSuggestions || [], this.currentValue, this.showDistinctSuggestions);
|
|
127
|
+
this.currentValue ? this.popularSuggestions : this.defaultPopularSuggestions || [], this.currentValue || '', this.showDistinctSuggestions);
|
|
128
128
|
},
|
|
129
129
|
defaultSearchSuggestions: function defaultSearchSuggestions() {
|
|
130
130
|
var isPopularSuggestionsEnabled = this.enablePopularSuggestions;
|
|
@@ -144,7 +144,7 @@ var DataSearch = {
|
|
|
144
144
|
var defaultSuggestions = isPopularSuggestionsEnabled ? [].concat(customNormalizedRecentSearches, customDefaultPopularSuggestions || []) : customNormalizedRecentSearches;
|
|
145
145
|
return getTopSuggestions(
|
|
146
146
|
// use default popular suggestions if value is empty
|
|
147
|
-
defaultSuggestions, this.currentValue, this.showDistinctSuggestions);
|
|
147
|
+
defaultSuggestions, this.currentValue || '', this.showDistinctSuggestions);
|
|
148
148
|
},
|
|
149
149
|
hasCustomRenderer: function hasCustomRenderer$1() {
|
|
150
150
|
return hasCustomRenderer(this);
|
|
@@ -404,7 +404,7 @@ var DataSearch = {
|
|
|
404
404
|
return queryOptions;
|
|
405
405
|
},
|
|
406
406
|
onSuggestions: function onSuggestions(results) {
|
|
407
|
-
return handleOnSuggestions(results, this.$data.currentValue, this);
|
|
407
|
+
return handleOnSuggestions(results, this.$data.currentValue || '', this);
|
|
408
408
|
},
|
|
409
409
|
handleSearchIconClick: function handleSearchIconClick() {
|
|
410
410
|
var currentValue = this.currentValue;
|
|
@@ -472,7 +472,7 @@ var DataSearch = {
|
|
|
472
472
|
isTagAdded = true;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
if (props.strictSelection && !isTagAdded) {
|
|
475
|
+
if (props.strictSelection && !isTagAdded && typeof value === 'string') {
|
|
476
476
|
_this.currentValue = value;
|
|
477
477
|
} else {
|
|
478
478
|
_this.currentValue = '';
|
package/dist/es/version.js
CHANGED