@tiptap/core 2.0.0-beta.164 → 2.0.0-beta.165

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.
@@ -210,8 +210,12 @@ const ClipboardTextSerializer = Extension.create({
210
210
 
211
211
  const blur = () => ({ editor, view }) => {
212
212
  requestAnimationFrame(() => {
213
+ var _a;
213
214
  if (!editor.isDestroyed) {
214
215
  view.dom.blur();
216
+ // Browsers should remove the caret on blur but safari does not.
217
+ // See: https://github.com/ueberdosis/tiptap/issues/2405
218
+ (_a = window === null || window === void 0 ? void 0 : window.getSelection()) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
215
219
  }
216
220
  });
217
221
  return true;