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: tabbing error with row select and expanded rows enabled #3571

Closed
bloommi opened this issue Jan 20, 2023 · 0 comments
Closed

DataTable: tabbing error with row select and expanded rows enabled #3571

bloommi opened this issue Jan 20, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@bloommi
Copy link

bloommi commented Jan 20, 2023

Describe the bug

When tabbing over table cells in a DataTable with both row select and expanded rows enabled, a console error appears. The error occurs here in the DataTable.vue component because the variable firstSelectedRow is null.

Reproducer

none

PrimeVue version

3.22.2

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite App

Browser(s)

No response

Steps to reproduce the behavior

  • Create a table with both row select and expanded rows enabled (DataTable v-model:expandedRows="expanded" v-model:selection="selection" selectionMode=single)
  • Select a row in the table
  • Click on a table cell, then use the tab key to navigate over cells in the table. An error will occur in the browser console.

Expected behavior

No errors should occur

@bloommi bloommi 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 20, 2023
@tugcekucukoglu tugcekucukoglu changed the title DataTable: Browser console error when tabbing over cells in a table with row select and expanded rows enabled DataTable: tabbing error with row select and expanded rows enabled Jan 26, 2023
@tugcekucukoglu tugcekucukoglu 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 26, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.23.0 milestone Jan 26, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Jan 26, 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

No branches or pull requests

2 participants