@sumaris-net/ngx-components 18.6.19-alpha5 → 18.6.19
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.
|
@@ -8301,7 +8301,7 @@ class MatAutocompleteField {
|
|
|
8301
8301
|
//if (this.debug) console.debug(this.logPrefix + ' Cancelling focus event');
|
|
8302
8302
|
return false;
|
|
8303
8303
|
}
|
|
8304
|
-
// Already focused
|
|
8304
|
+
// Already focused - fix issue sumaris-app#837 (2 panels opened at the same time)
|
|
8305
8305
|
if (this._focused)
|
|
8306
8306
|
return false;
|
|
8307
8307
|
this._focused = true;
|
|
@@ -8312,7 +8312,7 @@ class MatAutocompleteField {
|
|
|
8312
8312
|
if (!hasContent || this.showPanelOnFocus || this.showAllOnFocus) {
|
|
8313
8313
|
// DEBUG
|
|
8314
8314
|
//if (this.debug) console.debug(this.logPrefix + ' Emit focus event');
|
|
8315
|
-
// Need a delay to prevent early focus event, just after a blur event (see
|
|
8315
|
+
// Need a delay to prevent early focus event, just after a blur event (see issue sumaris-app#837 - 2 panels opened)
|
|
8316
8316
|
setTimeout(() => {
|
|
8317
8317
|
if (!this._focused)
|
|
8318
8318
|
return; // Skip if blur event received
|
|
@@ -8339,6 +8339,9 @@ class MatAutocompleteField {
|
|
|
8339
8339
|
//if (this.debug) console.debug(this.logPrefix + " Cancelling blur event");
|
|
8340
8340
|
return;
|
|
8341
8341
|
}
|
|
8342
|
+
// Already blurred: skip
|
|
8343
|
+
if (!this._focused)
|
|
8344
|
+
return;
|
|
8342
8345
|
this._focused = false;
|
|
8343
8346
|
// Need a delay to prevent early blur event without triggering formChange event
|
|
8344
8347
|
setTimeout(() => {
|