Fix not being able to add rows when only a sticky column exists
This commit is contained in:
parent
6d0271ae97
commit
05bba92b94
|
@ -78,7 +78,7 @@
|
|||
}
|
||||
|
||||
const startAdding = async () => {
|
||||
if (visible || !$renderedColumns.length) {
|
||||
if (visible || !firstColumn) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@
|
|||
</script>
|
||||
|
||||
<!-- New row FAB -->
|
||||
{#if !visible && !selectedRowCount && $config.allowAddRows && $renderedColumns.length}
|
||||
{#if !visible && !selectedRowCount && $config.allowAddRows && firstColumn}
|
||||
<div
|
||||
class="new-row-fab"
|
||||
on:click={() => dispatch("add-row-inline")}
|
||||
|
|
Loading…
Reference in New Issue