diff --git a/src/context/providers/NonCollinearMagnetizationContextProvider.js b/src/context/providers/NonCollinearMagnetizationContextProvider.js index d454bc5..170e553 100644 --- a/src/context/providers/NonCollinearMagnetizationContextProvider.js +++ b/src/context/providers/NonCollinearMagnetizationContextProvider.js @@ -94,10 +94,8 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm }, isConstrainedMagnetization: {}, constrainedMagnetization: { - props: { - constrainType: this.defaultFieldStyles, - lambda: this.defaultFieldStyles, - }, + constrainType: this.defaultFieldStyles, + lambda: this.defaultFieldStyles, "ui:readonly": !this.isConstrainedMagnetization, }, };