Skip to content

Commit

Permalink
readonly fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMayor committed Apr 21, 2020
1 parent 3b9988f commit 055dc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion D365RichtextEditor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class D365RichtextEditor implements ComponentFramework.StandardControl<II
let readOnlyChanged = this.props.readonly != context.mode.isControlDisabled;
if (!this._controlViewRendered || readOnlyChanged) {
var controltextchanged = this.props.text != context.parameters.text.raw

this.props.readonly = context.mode.isControlDisabled;
if (context.parameters.text.raw != null && controltextchanged) {
this.props.text = context.parameters.text.raw;
}
Expand Down

0 comments on commit 055dc2c

Please sign in to comment.