LearnNewsExamplesServices
Frontmatter
id7192
titleIncorrect aria-rowcount in grid
stateClosed
labels
bug
assigneestobiu
createdAtAug 15, 2025, 9:55 AM
updatedAtAug 15, 2025, 9:56 AM
githubUrlhttps://github.com/neomjs/neo/issues/7192
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 15, 2025, 9:56 AM

Incorrect aria-rowcount in grid

Closed v10.5.3 bug
tobiu
tobiu commented on Aug 15, 2025, 9:55 AM

Describe the bug The aria-rowcount attribute for a grid was calculated incorrectly. It was adding 2 to the store's record count instead of 1. The aria-rowcount is 1-based and should include the column header row, so the correct calculation is store.count + 1.

To Reproduce Steps to reproduce the behavior:

  1. Create a grid with a store containing n records.
  2. Inspect the DOM of the grid container.
  3. Observe the aria-rowcount attribute.
  4. The value was n + 2, which is incorrect.

Expected behavior The aria-rowcount attribute should have been n + 1. For example, a grid with 100 data rows should have an aria-rowcount of 101 (100 rows + 1 header row).

Additional context The issue was located in src/grid/Container.mjs within the updateRowCount() method.

The fix was to change: me.getVdomRoot()['aria-rowcount'] = finalCount + 2; to: me.getVdomRoot()['aria-rowcount'] = finalCount + 1;

tobiu assigned to @tobiu on Aug 15, 2025, 9:55 AM
tobiu added the bug label on Aug 15, 2025, 9:55 AM
tobiu referenced in commit c7654ad - "Incorrect aria-rowcount in grid #7192" on Aug 15, 2025, 9:56 AM
tobiu closed this issue on Aug 15, 2025, 9:56 AM