@clr/angular 12.1.2 → 12.1.3
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/bundles/clr-angular.umd.js +12 -1
- package/bundles/clr-angular.umd.js.map +1 -1
- package/esm2015/forms/combobox/options.js +5 -1
- package/esm2015/forms/combobox/providers/combobox-focus-handler.service.js +9 -2
- package/fesm2015/clr-angular.js +12 -1
- package/fesm2015/clr-angular.js.map +1 -1
- package/package.json +1 -1
|
@@ -6077,7 +6077,14 @@
|
|
|
6077
6077
|
firstActive_1 = this.selectionService.selectionModel.model;
|
|
6078
6078
|
}
|
|
6079
6079
|
var activeProxy = this.optionData.find(function (option) { return option.value === firstActive_1; });
|
|
6080
|
-
|
|
6080
|
+
if (activeProxy) {
|
|
6081
|
+
// active element is visible
|
|
6082
|
+
this.pseudoFocus.select(activeProxy);
|
|
6083
|
+
}
|
|
6084
|
+
else {
|
|
6085
|
+
// we have active element, but it's filtered out
|
|
6086
|
+
this.pseudoFocus.select(this.optionData[0]);
|
|
6087
|
+
}
|
|
6081
6088
|
}
|
|
6082
6089
|
}
|
|
6083
6090
|
};
|
|
@@ -6736,6 +6743,10 @@
|
|
|
6736
6743
|
event.target !== _this.focusHandler.textInput) {
|
|
6737
6744
|
_this.toggleService.open = false;
|
|
6738
6745
|
}
|
|
6746
|
+
}), this.items.changes.subscribe(function () {
|
|
6747
|
+
setTimeout(function () {
|
|
6748
|
+
_this.focusHandler.focusFirstActive();
|
|
6749
|
+
});
|
|
6739
6750
|
}));
|
|
6740
6751
|
};
|
|
6741
6752
|
ClrOptions.prototype.ngOnDestroy = function () {
|