@bnsights/bbsf-controls 1.0.21 → 1.0.22

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.
@@ -4282,7 +4282,7 @@
4282
4282
  this.IsFirstCall = true;
4283
4283
  this.getItemList(this.CurrentPage, true);
4284
4284
  };
4285
- PagingComponent.prototype.ngAfterViewChecked = function () {
4285
+ PagingComponent.prototype.ngAfterViewInit = function () {
4286
4286
  var _this = this;
4287
4287
  if (this.options.OnClickFiltersControlNames != null && this.options.OnClickFiltersControlNames.length > 0) {
4288
4288
  var OnClickFiltersControlNames = this.options.OnClickFiltersControlNames;
@@ -4299,7 +4299,8 @@
4299
4299
  var OnKeyPressFiltersControlNames = this.options.OnKeyPressFiltersControlNames;
4300
4300
  for (var index = 0; index < OnKeyPressFiltersControlNames.length; index++) {
4301
4301
  var OnKeyPressFiltersControlName = OnKeyPressFiltersControlNames[index];
4302
- document.getElementById(OnKeyPressFiltersControlName).addEventListener("keypress", function (e) {
4302
+ var element = this.group.get(OnKeyPressFiltersControlName).nativeElement;
4303
+ element.addEventListener("keypress", function (e) {
4303
4304
  if (e.key == "Enter") {
4304
4305
  _this.CurrentPage = 1;
4305
4306
  _this.IsFirstCall = true;