@searchspring/snap-controller 0.27.6 → 0.27.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.
@@ -462,7 +462,7 @@ var AutocompleteController = /** @class */ (function (_super) {
462
462
  _this.store.setConfig(_this.config);
463
463
  // get current search from url before detaching
464
464
  if (_this.config.settings.initializeFromUrl) {
465
- _this.store.state.input = _this.urlManager.state.query || '';
465
+ _this.store.state.input = _this.urlManager.state.query;
466
466
  // reset to force search on focus
467
467
  // TODO: make a config setting for this
468
468
  _this.urlManager.reset().go();
@@ -309,7 +309,7 @@ export class AutocompleteController extends AbstractController {
309
309
  this.store.setConfig(this.config);
310
310
  // get current search from url before detaching
311
311
  if (this.config.settings.initializeFromUrl) {
312
- this.store.state.input = this.urlManager.state.query || '';
312
+ this.store.state.input = this.urlManager.state.query;
313
313
  // reset to force search on focus
314
314
  // TODO: make a config setting for this
315
315
  this.urlManager.reset().go();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchspring/snap-controller",
3
- "version": "0.27.6",
3
+ "version": "0.27.7",
4
4
  "description": "Snap Controllers",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -20,21 +20,21 @@
20
20
  "test:watch": "jest --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@searchspring/snap-toolbox": "^0.27.6",
23
+ "@searchspring/snap-toolbox": "^0.27.7",
24
24
  "deepmerge": "^4.2.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@searchspring/snap-client": "^0.27.6",
28
- "@searchspring/snap-event-manager": "^0.27.6",
29
- "@searchspring/snap-logger": "^0.27.6",
30
- "@searchspring/snap-profiler": "^0.27.6",
31
- "@searchspring/snap-store-mobx": "^0.27.6",
32
- "@searchspring/snap-tracker": "^0.27.6",
33
- "@searchspring/snap-url-manager": "^0.27.6"
27
+ "@searchspring/snap-client": "^0.27.7",
28
+ "@searchspring/snap-event-manager": "^0.27.7",
29
+ "@searchspring/snap-logger": "^0.27.7",
30
+ "@searchspring/snap-profiler": "^0.27.7",
31
+ "@searchspring/snap-store-mobx": "^0.27.7",
32
+ "@searchspring/snap-tracker": "^0.27.7",
33
+ "@searchspring/snap-url-manager": "^0.27.7"
34
34
  },
35
35
  "sideEffects": false,
36
36
  "files": [
37
37
  "dist/**/*"
38
38
  ],
39
- "gitHead": "13df7179bc5f3b4b6ddd7c3b9933a78ef020aa92"
39
+ "gitHead": "e926b49d646627752cb9a63a71709b3ee0ba892a"
40
40
  }