-
Notifications
You must be signed in to change notification settings - Fork 781
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
onRowClick fires only when I click on a cell padding. #995
Comments
Your issue might be related to #994 |
@achraf-jeday, yap, this issue might be related with #994, I'll fix it as soon as possible. :) |
@achraf-jeday, could you please show me your |
@AllenFang, Sorry for the delay. This is the table:
This is the onRowClick function:
These are the functions that I'm using to format the content of some cells:
I am using redux to pass data and functions from one component to another. I will use an older version of the table until this is fixed. Thank you @AllenFang and @wgorman. |
@achraf-jeday, thank you :) |
Fixed on |
@AllenFang I upgraded to v.2.11.0, however the problem is still there. |
@shadeven, make sure you have upgrade successfully, and could you please show me your code snippet. Keep it simple and minimal for me to reproduce |
@AllenFang It was a silly mistake from my end. All good now. Thanks anyway. |
@AllenFang One more question if you don't mind. When transpiling jsx files using Webpack, I use the version 2.9.1, but in my application, I mistakenly use the source code of version 2.3.4. The application seems work fine. But what would be the best practise in this case? Why does the transpiled js work with an older version? |
I think it's impossible, because you can only reference one dependency and I'm interesting that how did you use the source code with thank 👍 |
@AllenFang It's along story. The project is built using PHP and the team decided to introduce React to the project about one year ago. It uses an odd way to transpile JSX. Basically JSX are transpiled in a different directory and JS files are manually copied under project workspace afterwards. For CSS files, There are references in html directly pointing to the directory where react-bootstrap-table source code sits. My question is after JSX are transpiled, do we still need the source code such as |
You can drop the source code I think, you can try it with a experiment |
@AllenFang What about CSS files? |
Same with JS, the css file is most easy to handle, it only minify~ |
@AllenFang I meant can CSS file be dropped after transpiling? |
ah sorry, for you CSS case, you should not drop it, because you use it directly. |
That makes sense. One more question, if I use |
No need ~ |
Actually, the title says it all.
I am using onRowClick event to fire a function that will display an overlay.
Everything was working as expected until recently. I noticed that when I click on a row the onRowClick event doesn't fire.
After some investigation, I discovered that it's firing only when a cell padding is clicked but not its content.
Did anyone encounter the same issue?
Thanks for your time.
The text was updated successfully, but these errors were encountered: