@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.
@@ -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 = '';
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.36.5";
5
+ var version = "1.36.7";
6
6
 
7
7
  exports.default = version;
@@ -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 = '';
@@ -1,3 +1,3 @@
1
- var version = "1.36.5";
1
+ var version = "1.36.7";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.36.5",
3
+ "version": "1.36.7",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",