mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-47880 UI breaks when pasting very large text into text field (#12043)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user