Fixed #4133 - Selection(multiple and single) not working in TreeTable

pull/4148/head
Tuğçe Küçükoğlu 2023-07-14 10:17:45 +03:00
parent 1c05650aaf
commit a09f66ec46
2 changed files with 3 additions and 3 deletions

View File

@ -174,10 +174,10 @@ const styles = `
`;
const classes = {
root: ({ props }) => [
root: ({ instance, props }) => [
'p-treetable p-component',
{
'p-treetable-hoverable-rows': props.rowHover || props.rowSelectionMode,
'p-treetable-hoverable-rows': props.rowHover || instance.rowSelectionMode,
'p-treetable-auto-layout': props.autoLayout,
'p-treetable-resizable': props.resizableColumns,
'p-treetable-resizable-fit': props.resizableColumns && props.columnResizeMode === 'fit',

View File

@ -394,7 +394,7 @@ export default {
},
computed: {
containerClass() {
return [this.node.styleClass, this.cx('root')];
return [this.node.styleClass, this.cx('row')];
},
expanded() {
return this.expandedKeys && this.expandedKeys[this.node.key] === true;