mobile: fix exiting table not working

This commit is contained in:
Ammar Ahmed
2025-07-25 14:24:14 +05:00
parent f445a963f9
commit 8aa31b8380

View File

@@ -386,7 +386,8 @@ const Tiptap = ({
firstChildNodeType !== "embed" &&
firstChildNodeType !== "attachment" &&
firstChildNodeType !== "mathBlock" &&
firstChildNodeType !== "horizontalRule";
firstChildNodeType !== "horizontalRule" &&
firstChildNodeType !== "table";
if (isSimpleNode) {
editor?.commands.focus("end");
return;
@@ -414,7 +415,8 @@ const Tiptap = ({
lastChildNodeType !== "embed" &&
lastChildNodeType !== "attachment" &&
lastChildNodeType !== "mathBlock" &&
lastChildNodeType !== "horizontalRule";
lastChildNodeType !== "horizontalRule" &&
lastChildNodeType !== "table";
if (isSimpleNode) {
editor?.commands.focus("end");
return;