ngx-sp-infra 5.21.0 → 5.22.0

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.
@@ -4007,12 +4007,6 @@ class LibComboboxComponent {
4007
4007
  this.adjustDropdownWidth();
4008
4008
  this.setValidator();
4009
4009
  this.updateSelectedValue();
4010
- if (this.list != undefined && this.list.length > 5) {
4011
- this.showSearchInput = true;
4012
- }
4013
- else {
4014
- this.showSearchInput = false;
4015
- }
4016
4010
  }
4017
4011
  ngAfterViewInit() {
4018
4012
  this.adjustDropdownWidth();
@@ -4020,6 +4014,9 @@ class LibComboboxComponent {
4020
4014
  ngOnChanges(changes) {
4021
4015
  if (changes["list"]?.currentValue)
4022
4016
  this.updateSelectedValue();
4017
+ if (changes["list"] && this.list) {
4018
+ this.showSearchInput = this.list.length > 5;
4019
+ }
4023
4020
  if (changes["libRequired"]?.currentValue != undefined)
4024
4021
  this.setValidator();
4025
4022
  if (changes["control"]?.currentValue) {