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

OrderList: TypeError with empty list #3870

Closed
ig-onoffice-de opened this issue Apr 18, 2023 · 0 comments · Fixed by #3946
Closed

OrderList: TypeError with empty list #3870

ig-onoffice-de opened this issue Apr 18, 2023 · 0 comments · Fixed by #3946
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ig-onoffice-de
Copy link
Contributor

Describe the bug

With an Empty list I get a TypeError when clicking on the element.

The problem is here:
items[order] is undefined, because items is an empty array.

Reproducer

https://codesandbox.io/s/hopeful-hugle-s6p1rc?file=/src/App.vue

PrimeVue version

3.26.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the reproduction link
  2. Click in the empty Orderlist
  3. See the error in the browsers console
Uncaught TypeError: Cannot read properties of undefined (reading 'getAttribute')

Expected behavior

No TypeError.

@ig-onoffice-de ig-onoffice-de added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 18, 2023
@bahadirsofuoglu bahadirsofuoglu 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 May 10, 2023
@bahadirsofuoglu bahadirsofuoglu self-assigned this May 10, 2023
@bahadirsofuoglu bahadirsofuoglu modified the milestones: 3.29.0, 3.x May 10, 2023
@tugcekucukoglu tugcekucukoglu modified the milestones: 3.x, 3.29.0 May 11, 2023
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