@arsedizioni/ars-utils 19.4.46 → 19.4.47

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.
@@ -1503,6 +1503,7 @@ class FileInputComponent {
1503
1503
  this.ngControl = ngControl;
1504
1504
  this.renderer = inject(Renderer2);
1505
1505
  this.uiService = inject(UIService);
1506
+ this.changeDetector = inject(ChangeDetectorRef);
1506
1507
  this.stateChanges = new Subject();
1507
1508
  this.controlType = 'file-input';
1508
1509
  this.focused = false;
@@ -1547,11 +1548,12 @@ class FileInputComponent {
1547
1548
  }
1548
1549
  catch { }
1549
1550
  }
1550
- if (!this.placeholder) {
1551
+ if (!this.placeholder || this.placeholder === 'Seleziona file') {
1551
1552
  this.placeholder =
1552
1553
  this.canCapture
1553
1554
  ? "Seleziona file o acquisisci con fotocamera"
1554
1555
  : "Seleziona file";
1556
+ this.changeDetector.markForCheck();
1555
1557
  }
1556
1558
  }
1557
1559
  ngOnDestroy() {