From 6b1ed2972d0dd25fded11e2c5b25d3b2520fdd0b Mon Sep 17 00:00:00 2001 From: Pavel Janda Date: Thu, 2 Nov 2023 16:05:07 +0100 Subject: [PATCH] Fixed inline edit plugin --- assets/plugins/features/inline.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/plugins/features/inline.ts b/assets/plugins/features/inline.ts index c0b94efd..d3e4a72a 100644 --- a/assets/plugins/features/inline.ts +++ b/assets/plugins/features/inline.ts @@ -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( + let rows = datagrid.el.querySelectorAll( `tr[data-id='${payload._datagrid_inline_edited}'] > td` - )?.classList.remove("hidden"); + ); + + rows.forEach(row => { + row.classList.add("edited"); + }) } trigger?.classList.remove("hidden");