novo-elements 7.5.0 → 7.5.1-next.1
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.
|
@@ -29894,7 +29894,7 @@ class NovoPickerElement {
|
|
|
29894
29894
|
}
|
|
29895
29895
|
return;
|
|
29896
29896
|
}
|
|
29897
|
-
if ((event.key === "Backspace" /* Backspace */ || event.key === "Delete" /* Delete */) && !Helpers.
|
|
29897
|
+
if ((event.key === "Backspace" /* Backspace */ || event.key === "Delete" /* Delete */) && !Helpers.isEmpty(this._value) && (this._value === this.term)) {
|
|
29898
29898
|
this.clearValue(false);
|
|
29899
29899
|
this.closePanel();
|
|
29900
29900
|
}
|
|
@@ -29980,6 +29980,7 @@ class NovoPickerElement {
|
|
|
29980
29980
|
}
|
|
29981
29981
|
}
|
|
29982
29982
|
else {
|
|
29983
|
+
this.term = this.clearValueOnSelect ? '' : selected.label;
|
|
29983
29984
|
this.changed.emit({ value: selected.value, rawValue: { label: this.term, value: this._value } });
|
|
29984
29985
|
this.select.emit(selected);
|
|
29985
29986
|
}
|
|
@@ -29988,7 +29989,7 @@ class NovoPickerElement {
|
|
|
29988
29989
|
// Makes sure to clear the model if the user clears the text box
|
|
29989
29990
|
checkTerm(event) {
|
|
29990
29991
|
this.typing.emit(event);
|
|
29991
|
-
if (!event || !event.length) {
|
|
29992
|
+
if ((!event || !event.length) && !Helpers.isEmpty(this._value)) {
|
|
29992
29993
|
this._value = null;
|
|
29993
29994
|
this.onModelChange(this._value);
|
|
29994
29995
|
}
|