Skip to content

Commit

Permalink
Fixed inline edit plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Nov 3, 2023
1 parent e33c3af commit bc19f86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/plugins/features/inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ export class InlinePlugin implements DatagridPlugin {
const trigger = datagrid.el.querySelector('.datagrid-inline-edit-trigger');

if (payload._datagrid_inline_edited) {
datagrid.el.querySelector<HTMLTableCellElement>(
let rows = datagrid.el.querySelectorAll<HTMLTableCellElement>(
`tr[data-id='${payload._datagrid_inline_edited}'] > td`
)?.classList.remove("hidden");
);

rows.forEach(row => {
row.classList.add("edited");
})
}

trigger?.classList.remove("hidden");
Expand Down

0 comments on commit bc19f86

Please sign in to comment.