Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable Column header slot does not work #987

Closed
ubau opened this issue Feb 18, 2021 · 3 comments
Closed

DataTable Column header slot does not work #987

ubau opened this issue Feb 18, 2021 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ubau
Copy link

ubau commented Feb 18, 2021

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.

@ZakyAbanoub
Copy link

Neither the Datatable Column headerClass for sure

@medfrk
Copy link

medfrk commented Feb 20, 2021

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

@cagataycivici cagataycivici self-assigned this Feb 23, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Feb 23, 2021
@cagataycivici cagataycivici added this to the 3.3.0 milestone Feb 23, 2021
@cagataycivici
Copy link
Member

Both are fixed, thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

4 participants