@tiptap/core 3.10.2 → 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/dist/index.cjs CHANGED
@@ -4523,7 +4523,9 @@ var Editor = class extends EventEmitter {
4523
4523
  if (this.isDestroyed) {
4524
4524
  return;
4525
4525
  }
4526
- this.commands.focus(this.options.autofocus);
4526
+ if (this.options.autofocus !== false && this.options.autofocus !== null) {
4527
+ this.commands.focus(this.options.autofocus);
4528
+ }
4527
4529
  this.emit("create", { editor: this });
4528
4530
  this.isInitialized = true;
4529
4531
  }, 0);