@wavemaker/app-ng-runtime 11.5.0-next.24731 → 11.5.0-next.24732

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.
@@ -2148,6 +2148,17 @@ class SelectComponent extends DatasetAwareFormComponent {
2148
2148
  return;
2149
2149
  }
2150
2150
  if (key === 'class' || key === 'tabindex') {
2151
+ if (key === 'class') {
2152
+ // After NG15 upgrade ng-invalid class is added even the field is valid, so we are removing the ng-invalid manually
2153
+ const isNgUntouchedValid = this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid');
2154
+ if (isNgUntouchedValid && nv.includes('ng-untouched') && nv.includes('ng-invalid')) {
2155
+ setTimeout(() => {
2156
+ if (this.selectEl.nativeElement.classList.contains('ng-untouched') && this.selectEl.nativeElement.classList.contains('ng-valid') && this.selectEl.nativeElement.classList.contains('ng-invalid')) {
2157
+ this.selectEl.nativeElement.classList.remove('ng-invalid');
2158
+ }
2159
+ });
2160
+ }
2161
+ }
2151
2162
  return;
2152
2163
  }
2153
2164
  else if (key === 'readonly') {