mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix editorMode: inline cells waiting to render even when disabled
This commit is contained in:
@@ -119,9 +119,6 @@ export default function withTableCell(
|
||||
rowHeight,
|
||||
};
|
||||
|
||||
// If the inline editor cell is not ready to be rendered, display nothing
|
||||
if (editorMode === "inline" && !inlineEditorReady) return null;
|
||||
|
||||
// Show display cell, unless if editorMode is inline
|
||||
const displayCell = (
|
||||
<div
|
||||
@@ -135,6 +132,9 @@ export default function withTableCell(
|
||||
if (disabled || (editorMode !== "inline" && !focusInsideCell))
|
||||
return displayCell;
|
||||
|
||||
// If the inline editor cell is not ready to be rendered, display nothing
|
||||
if (editorMode === "inline" && !inlineEditorReady) return null;
|
||||
|
||||
// Show displayCell as a fallback if intentionally null
|
||||
const editorCell = EditorCellComponent ? (
|
||||
<Suspense fallback={null}>
|
||||
|
||||
Reference in New Issue
Block a user