@wavemaker/app-ng-runtime 11.4.2-next.25744 → 11.4.2-next.25746

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.
@@ -448,6 +448,10 @@
448
448
  }
449
449
  else {
450
450
  var element = self.$element.find("[wmformfield][key=\"" + fieldName + "\"]");
451
+ // checking for name attribute if the key attribute is not present on formfield
452
+ if (!element.length) {
453
+ element = self.$element.find("[wmformfield][name=\"" + fieldName + "\"]");
454
+ }
451
455
  if (element.length) {
452
456
  element[0].setAttribute('__errormsg', element[0].getAttribute('__validationId'));
453
457
  (_a = element[0].querySelector('input')) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-invalid', ngForm.invalid);