@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.
- package/index.js +4 -0
- 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) {
|