Skip to content

Commit

Permalink
Fix #6691: fix default editMode value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekl0w committed May 28, 2024
1 parent 6256dd8 commit 73b94a9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions components/lib/datatable/DataTableBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,12 @@ const classes = {
'p-editable-column': editor,
'p-cell-editing': editor && editingState,
'p-frozen-column': frozen,
'p-selectable-cell': props.allowCellSelection && props.isSelectable({ data: getCellParams(), index: props.rowIndex }),
'p-selectable-cell':
props.allowCellSelection &&
props.isSelectable({
data: getCellParams(),
index: props.rowIndex
}),
'p-highlight': cellSelected,
[`p-align-${align}`]: !!align
}),
Expand All @@ -337,7 +342,12 @@ const classes = {
classNames({
'p-highlight': (!props.allowCellSelection && props.selected) || props.contextMenuSelected,
'p-highlight-contextmenu': props.contextMenuSelected,
'p-selectable-row': props.allowRowSelection && props.isSelectable({ data: props.rowData, index: props.rowIndex }),
'p-selectable-row':
props.allowRowSelection &&
props.isSelectable({
data: props.rowData,
index: props.rowIndex
}),
'p-row-odd': props.rowIndex % 2 !== 0
}),
rowGroupTogglerIcon: 'p-row-toggler-icon',
Expand Down Expand Up @@ -441,7 +451,7 @@ export const DataTableBase = ComponentBase.extend({
dataKey: null,
defaultSortOrder: 1,
dragSelection: false,
editMode: null,
editMode: 'cell',
editingRows: null,
emptyMessage: null,
expandableRowGroups: false,
Expand Down

0 comments on commit 73b94a9

Please sign in to comment.