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 () => {
|
const startAdding = async () => {
|
||||||
if (visible || !$renderedColumns.length) {
|
if (visible || !firstColumn) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- New row FAB -->
|
<!-- New row FAB -->
|
||||||
{#if !visible && !selectedRowCount && $config.allowAddRows && $renderedColumns.length}
|
{#if !visible && !selectedRowCount && $config.allowAddRows && firstColumn}
|
||||||
<div
|
<div
|
||||||
class="new-row-fab"
|
class="new-row-fab"
|
||||||
on:click={() => dispatch("add-row-inline")}
|
on:click={() => dispatch("add-row-inline")}
|
||||||
|
|
Loading…
Reference in New Issue