@suntelecoms/ngx-dynamic-form 1.7.15 → 1.7.16

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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Angular](https://img.shields.io/badge/Angular-19-red?logo=angular)](https://angular.dev)
6
6
  [![Angular Material](https://img.shields.io/badge/Angular_Material-19-blue?logo=material-design)](https://material.angular.io)
7
- [![Version](https://img.shields.io/badge/version-1.7.15-brightgreen)](CHANGELOG.md)
7
+ [![Version](https://img.shields.io/badge/version-1.7.16-brightgreen)](CHANGELOG.md)
8
8
  [![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)
9
9
  [![Author](https://img.shields.io/badge/Author-Amadou%20Diallo-purple)](mailto:amadoumacbookpro38@gmail.com)
10
10
 
@@ -1247,11 +1247,16 @@ class DynamicFieldComponent {
1247
1247
  }));
1248
1248
  }
1249
1249
  this.loadingOptions = false;
1250
+ // Réponse HTTP arrivée dans un callback async : sans ça, mat-select n'affiche le
1251
+ // libellé de la valeur déjà pré-remplie (mode édition) qu'au prochain cycle de
1252
+ // détection de changements déclenché par autre chose (ex: cliquer sur le select).
1253
+ this.cdr.markForCheck();
1250
1254
  },
1251
1255
  error: (err) => {
1252
1256
  console.error(`[ngx-dynamic-form] Échec du chargement des options pour "${this.field.key}" (${url}):`, err);
1253
1257
  this.resolvedOptions = [];
1254
1258
  this.loadingOptions = false;
1259
+ this.cdr.markForCheck();
1255
1260
  },
1256
1261
  });
1257
1262
  }