mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-494] fixed readonly rendering for forms (#1972)
* [ADF-494] improved disabling for form * [ADF-494] fixed readonly rendering for forms
This commit is contained in:
@@ -101,6 +101,17 @@ describe('TextWidget', () => {
|
||||
expect(inputElement.disabled).toBeTruthy();
|
||||
});
|
||||
}));
|
||||
|
||||
it('should be disabled on readonly forms', async(() => {
|
||||
textWidget.field.form.readOnly = true;
|
||||
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
expect(inputElement).toBeDefined();
|
||||
expect(inputElement).not.toBeNull();
|
||||
expect(inputElement.disabled).toBeTruthy();
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
describe('and mask is configured on text element', () => {
|
||||
|
Reference in New Issue
Block a user