diff --git a/src/views/datatable/DataTableEditDemo.vue b/src/views/datatable/DataTableEditDemo.vue
index 4220a1acc..9db1597ea 100755
--- a/src/views/datatable/DataTableEditDemo.vue
+++ b/src/views/datatable/DataTableEditDemo.vue
@@ -13,7 +13,7 @@
Basic Cell Editing
Simple editors with v-model.
-
+
@@ -47,7 +47,7 @@
Advanced Cell Editing
Custom implementation with validations, dynamic columns and reverting values with the escape key.
-
+
@@ -100,7 +100,7 @@
<div class="card">
<h5>Basic Cell Editing</h5>
<p>Simple editors with v-model.</p>
- <DataTable :value="products1" editMode="cell">
+ <DataTable :value="products1" editMode="cell" class="editable-cells-table">
<Column field="code" header="Code">
<template #editor="slotProps">
<InputText v-model="slotProps.data[slotProps.column.field]" />
@@ -134,7 +134,7 @@
<div class="card">
<h5>Advanced Cell Editing</h5>
<p>Custom implementation with validations, dynamic columns and reverting values with the escape key.</p>
- <DataTable :value="products2" editMode="cell" @cell-edit-complete="onCellEditComplete">
+ <DataTable :value="products2" editMode="cell" @cell-edit-complete="onCellEditComplete" class="editable-cells-table">
<Column v-for="col of columns" :field="col.field" :header="col.header" :key="col.field">
<template #editor="slotProps">
<InputText :value="slotProps.data[slotProps.column.field]" @input="onCellEdit($event, slotProps)" />
@@ -287,6 +287,13 @@ export default {
+
+.editable-cells-table td.p-cell-editing {
+ padding-top: 0;
+ padding-bottom: 0;
+}
+
+
\ No newline at end of file