@mackin.com/styleguide 9.2.1 → 9.2.2

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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4758,7 +4758,11 @@ class AutocompleteEntityController {
4758
4758
  return this._options.map(o => o.name);
4759
4759
  }
4760
4760
  async onChange(newValue) {
4761
+ const clearEntity = newValue !== this._ctrl.value;
4761
4762
  await this._ctrl.onChange(newValue);
4763
+ if (clearEntity) {
4764
+ this._pickedEntity = undefined;
4765
+ }
4762
4766
  this.trySyncCtrlOptions();
4763
4767
  }
4764
4768
  onPick(newValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "9.2.1",
3
+ "version": "9.2.2",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",