Customfields: Explicitly use description widget for readonly text fields

This commit is contained in:
nathan 2022-08-30 13:28:15 -06:00
parent 69893e891b
commit 446b51d74a

View File

@ -540,6 +540,10 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
attrs.maxlength = field.len; attrs.maxlength = field.len;
} }
} }
if(attrs.readonly)
{
field.type = 'description';
}
return true; return true;
} }