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: Uncaught TypeError: Cannot read properties of null (reading 'sortable') at Proxy.getColumnPT8 #5062

Closed
AmmarMohamadIsmaeel opened this issue Jan 11, 2024 · 2 comments · Fixed by #5069
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@AmmarMohamadIsmaeel
Copy link

Describe the bug

Just a normal empty datatable is not working and throwing an error:
Uncaught TypeError: Cannot read properties of null (reading 'sortable')
image

My code:

 <DataTable :value="new Array(4)" class="p-datatable-sm">
      <Column>
        <template #body>
          <Skeleton height="0.4rem" animation="none"></Skeleton>
        </template>
      </Column>
      <Column>
        <template #body>
          <Skeleton height="0.4rem" animation="none"></Skeleton>
        </template>
      </Column>
    </DataTable>

Reproducer

https://stackblitz.com/edit/ceg4gb?file=src%2FApp.vue

PrimeVue version

3.46

Vue version

3.x

Language

ES6

Build / Runtime

Vue CLI App

Browser(s)

Chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@AmmarMohamadIsmaeel AmmarMohamadIsmaeel added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 11, 2024
@mertsincan mertsincan self-assigned this Jan 11, 2024
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 11, 2024
@mertsincan mertsincan added this to the 3.47.0 milestone Jan 11, 2024
@mertsincan
Copy link
Member

Thanks a lot for your report! I'll fix it for the next version.

@reitowo
Copy link

reitowo commented Jan 11, 2024

Same as #5056

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

Successfully merging a pull request may close this issue.

3 participants