We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04c37b commit cdac5dbCopy full SHA for cdac5db
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@editorjs/editorjs",
3
- "version": "2.31.0",
+ "version": "2.31.1",
4
"description": "Editor.js — open source block-style WYSIWYG editor with JSON output",
5
"main": "dist/editorjs.umd.js",
6
"module": "dist/editorjs.mjs",
src/components/modules/readonly.ts
@@ -71,6 +71,13 @@ export default class ReadOnly extends Module {
71
72
this.readOnlyEnabled = state;
73
74
+ /**
75
+ * Do not render UI if state is read-only and it's initial call
76
+ */
77
+ if (this.readOnlyEnabled && isInitial) {
78
+ return this.readOnlyEnabled;
79
+ }
80
+
81
for (const name in this.Editor) {
82
/**
83
* Verify module has method `toggleReadOnly` method
0 commit comments