@fundamental-ngx/platform 0.55.8 → 0.55.10
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.
|
@@ -2869,6 +2869,13 @@ class AutoCompleteDirective {
|
|
|
2869
2869
|
if (!this._triggerTypeAhead()) {
|
|
2870
2870
|
return;
|
|
2871
2871
|
}
|
|
2872
|
+
// Check if this is a new typing session after programmatic input modification
|
|
2873
|
+
const currentNativeValue = this._element.value;
|
|
2874
|
+
if (this.inputText.length > currentNativeValue.length + 1) {
|
|
2875
|
+
// Reset inputText to current value and don't do typeahead
|
|
2876
|
+
this.inputText = currentNativeValue;
|
|
2877
|
+
return;
|
|
2878
|
+
}
|
|
2872
2879
|
this._oldValue = this.inputText;
|
|
2873
2880
|
const item = this._searchByStrategy();
|
|
2874
2881
|
if (item) {
|