1
0
Fork 0
mirror of synced 2024-07-09 00:06:05 +12:00

Fix on click actions not working when using non DS+ datasources and edit row setting is hidden but enabled

This commit is contained in:
Andrew Kingston 2023-10-18 14:21:09 +01:00
parent 70c5272ad9
commit faa70b79b6

View file

@ -24,7 +24,6 @@
$: columnWhitelist = columns?.map(col => col.name)
$: schemaOverrides = getSchemaOverrides(columns)
$: handleRowClick = allowEditRows ? undefined : onRowClick
const getSchemaOverrides = columns => {
let overrides = {}
@ -61,7 +60,7 @@
showControls={false}
notifySuccess={notificationStore.actions.success}
notifyError={notificationStore.actions.error}
on:rowclick={e => handleRowClick?.({ row: e.detail })}
on:rowclick={e => onRowClick?.({ row: e.detail })}
/>
</div>