AAE-47880 UI breaks when pasting very large text into text field (#12043)

This commit is contained in:
David Olson
2026-07-09 10:11:28 -05:00
committed by GitHub
parent fe2b3d85dd
commit 0b35118dee
6 changed files with 378 additions and 25 deletions
@@ -34,7 +34,8 @@ import {
AuthModule,
FormFieldEvent,
NoopTranslateModule,
NoopAuthModule
NoopAuthModule,
FORM_FIELD_VALIDATORS
} from '@alfresco/adf-core';
import { Node } from '@alfresco/js-api';
import { ESCAPE } from '@angular/cdk/keycodes';
@@ -1394,7 +1395,7 @@ describe('FormCloudComponent', () => {
formComponent.formCloudRepresentationJSON = new FormCloudRepresentation(JSON.parse(JSON.stringify(cloudFormMock)));
const form = formComponent.parseForm(formComponent.formCloudRepresentationJSON);
expect(formComponent.fieldValidators.length).toBe(1);
expect(form.fieldValidators.length).toBe(11);
expect(form.fieldValidators.length).toBe(FORM_FIELD_VALIDATORS.length + formComponent.fieldValidators.length);
});
describe('form validations', () => {