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

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) => {
@@ -7032,7 +7032,7 @@ class WImageFileUploaderComponent {
7032
7032
  base64: images.base64,
7033
7033
  name: this.sanitizeImageName(images.name),
7034
7034
  fileBase64: images.fileBase64,
7035
- ...(images.position !== undefined && { position: images.position }),
7035
+ ...(this.activePositionProperty ? { position: 0 } : null),
7036
7036
  ...(this.activeTypeMediaProperty ? { typeMedia: TypeMedia.Image } : null)
7037
7037
  }];
7038
7038
  }