@portabletext/editor 6.6.6 → 6.6.7
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/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -3842,10 +3842,8 @@ const RestoreDOM = IS_ANDROID ? RestoreDOMComponent : ({
|
|
|
3842
3842
|
const domSelection = getSelection(root2);
|
|
3843
3843
|
if (activeElement === el2)
|
|
3844
3844
|
state.latestElement = activeElement, editor.focused = !0;
|
|
3845
|
-
else
|
|
3846
|
-
editor.focused = !1;
|
|
3845
|
+
else if (editor.focused = !1, !readOnly)
|
|
3847
3846
|
return;
|
|
3848
|
-
}
|
|
3849
3847
|
if (!domSelection)
|
|
3850
3848
|
return deselect(editor);
|
|
3851
3849
|
const {
|