diff --git a/packages/frontend-core/src/components/grid/layout/NewRow.svelte b/packages/frontend-core/src/components/grid/layout/NewRow.svelte index d986f61f92..60945bdae2 100644 --- a/packages/frontend-core/src/components/grid/layout/NewRow.svelte +++ b/packages/frontend-core/src/components/grid/layout/NewRow.svelte @@ -27,6 +27,7 @@ rowVerticalInversionIndex, columnHorizontalInversionIndex, selectedRows, + config, } = getContext("grid") let visible = false @@ -77,7 +78,7 @@ } const startAdding = async () => { - if (visible) { + if (visible || !$renderedColumns.length) { return } @@ -131,9 +132,6 @@ e.preventDefault() clear() } - } else if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) { - e.preventDefault() - addRow() } } @@ -144,7 +142,7 @@ -{#if !visible && !selectedRowCount} +{#if !visible && !selectedRowCount && $config.allowAddRows && $renderedColumns.length}