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

React Virtual DOM sorting doesn't change order / prevents any onClick handlers on children #229

Open
kubjak opened this issue Jul 12, 2022 · 0 comments
Labels

Comments

@kubjak
Copy link

kubjak commented Jul 12, 2022

If any element inside table row is having onClick function attached, forked some table-sort-js Codesanbox example:

https://codesandbox.io/s/register-form-forked-2z8bn9?file=/CTable.js

If you attach anything directy to element, click handler works, but doesn't sort / or update in DOM.
If you attach a onClick on any button, after sorting this doesn't handle anymore.

Steps to reproduce:

  1. Try clicking button first to see alert message (works)
  2. Sort any column
  3. Try clicking button again (doesn't work)
@tripu tripu added the bug label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants