contributte / contributte/datagrid

Two datagrids (different components) on same page - ItemsDetail bug

Open
#805 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
296
Forks
215
PR merge metrics
No merged PRs in 30d

Description

Hello,
when i have two different datagrids (different components) on the same page and both has ItemDetail function there is a conflict:

Use case 1:
1) datagrid 1 - click at eye on row with primary key 10 and item detail is shown correctly and click again to close it.
2) datagrid 2 - click at eye on row with primary key 10 (different data but same key) -> on datagrid 1 is shown detail on row with key 10 = Eye buttons from key 10 from both datagrids showing detail from datagrid 1

Use case 2:
1) datagrid 2 - click at eye on row with primary key 10 and item detail is shown correctly and click again to close it.
2) datagrid 1 - click at eye on row with primary key 10 (different data but same key) -> on datagrid 2 is shown detail on row with key 10 = Eye buttons from key 10 from both datagrids showing detail from datagrid 2

If there are no same keys, everything working correctly but when there are same keys in both datagrids, depends which one has been clicked first.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with two datagrids using ItemDetail and the same primary key, 10, then trace how the ItemDetail state is associated with each grid. Done means opening the same key in either grid shows that grid's detail independently, without changing the other grid.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.