Skip to content

DataTable Column header slot does not work #987

Closed
@ubau

Description

@ubau

After upgrading to primevue 3.3.0-rc.1 got error in DataTable Column header slot

Uncaught (in promise) TypeError: can't access property "children", _ctx.col is undefined

  <Column
    field="deptCode"
    style="width: 54px; text-align: center"
    :sortable="false"
  >
    <template #header>
      <span title="Department"> Dept. </span>
    </template>

    <template #body="slotProps">
      <span :title="`${slotProps.data.deptName}`">{{
        slotProps.data.deptCode
      }}</span>
    </template>
  </Column>

This worked with previous versions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions