@tiptap/core 3.10.3 → 3.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "3.10.3",
4
+ "version": "3.10.4",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -52,10 +52,10 @@
52
52
  "jsx-dev-runtime"
53
53
  ],
54
54
  "devDependencies": {
55
- "@tiptap/pm": "^3.10.3"
55
+ "@tiptap/pm": "^3.10.4"
56
56
  },
57
57
  "peerDependencies": {
58
- "@tiptap/pm": "^3.10.3"
58
+ "@tiptap/pm": "^3.10.4"
59
59
  },
60
60
  "repository": {
61
61
  "type": "git",
package/src/Editor.ts CHANGED
@@ -171,7 +171,9 @@ export class Editor extends EventEmitter<EditorEvents> {
171
171
  return
172
172
  }
173
173
 
174
- this.commands.focus(this.options.autofocus)
174
+ if (this.options.autofocus !== false && this.options.autofocus !== null) {
175
+ this.commands.focus(this.options.autofocus)
176
+ }
175
177
  this.emit('create', { editor: this })
176
178
  this.isInitialized = true
177
179
  }, 0)