ngx-wapp-components 2.3.6-alpha.1 → 2.3.6-alpha.2

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.
@@ -3451,7 +3451,7 @@ class WSelectButtonComponent {
3451
3451
  this.onTouch = () => { };
3452
3452
  }
3453
3453
  ngAfterViewInit() {
3454
- if (this.stateOptions.every(opt => !opt.class)) {
3454
+ if (this.stateOptions.every(opt => opt?.class)) {
3455
3455
  const root = this.viewSelectorEl.nativeElement;
3456
3456
  const spans = root.querySelectorAll('.p-selectbutton .p-togglebutton');
3457
3457
  spans.forEach((toggle, i) => {