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

Incorrect onRowDoubleClick behaviour with scroll #400

Open
mashechko opened this issue Nov 21, 2023 · 1 comment
Open

Incorrect onRowDoubleClick behaviour with scroll #400

mashechko opened this issue Nov 21, 2023 · 1 comment

Comments

@mashechko
Copy link

  • what edition are you using - community
  • version for @inovua/reactdatagrid-community - 5.10.2

Relevant code or config

<Table
  onRowDoubleClick={(e, row) => {
    console.log(row.data);
    onRowDoubleClickHandler(e, row);
  }}
  // other props...
/>

What you did:

Set up the onRowDoubleClick event handler to handle double-click events on rows in the table.
Scroll to the end of the table and double-click on any row.

What happened:

The onRowDoubleClick event handler is not working correctly. It's passing the data of one of the top rows instead of the one that was double-clicked.

Reproduction repository:

https://codesandbox.io/s/intelligent-zhukovsky-vvqkk9?file=/src/App.js

Screen.Recording.2023-11-21.at.13.14.33.mov

Problem description:

The onRowDoubleClick event handler in the library is not working as expected. When a row is double-clicked, the event handler is triggered with the data of the row above the one that was actually double-clicked. This is problematic as it prevents the correct handling of double-click events.

@rstiyer
Copy link

rstiyer commented Mar 26, 2024

Has any progress been made on this issue? I'm encountering the same bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants