Skip to content

Commit

Permalink
fix bug in watcher disabled test if is not null before change isReadO…
Browse files Browse the repository at this point in the history
…nly value
  • Loading branch information
Jérôme Heissler committed May 6, 2021
1 parent 4e0d4a9 commit a4cab57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ export default {

// Synchronize changes of #disabled.
disabled( val ) {
this.$_instance.isReadOnly = val;
if ( this.$_instance ) {
this.$_instance.isReadOnly = val;
}
}
},

Expand Down

0 comments on commit a4cab57

Please sign in to comment.