-
Notifications
You must be signed in to change notification settings - Fork 145
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
Bug(Table): Clicking on multiselect checkbox the row doesn't get selected. #1978
Comments
It's been a while that I am having issue joining your slack channel can you please post the issue here or help me join your channel. |
Sorry it's private organization slack, only razorpay employees can join. Here's a video explaining the issue: Screen.Recording.2024-01-17.at.3.28.29.PM.mov |
Premise 📄The issue will only occur if the following are true:
The multi-select feature of Table works correctly if Why does this issue occur only for Blade Checkbox? 🤔The issue occurs due to unexpected event bubbling. Let us take an HTML Input and a Blade Checkbox and see how event delegation happens in both the cases. HTML Input
Blade Checkbox
If we click on the native input, event is delegated once and prints out "native outer div clicked" as expected. But, for Blade checkbox event is delegated twice and prints "blade outer div clicked" twice. Here's a codesandbox example for better understanding. Why does Blade Checkbox behave this way? 💡The Checkbox component composition looks like below:
The following happens when we click on the Checkbox:
Solution 🖋️
|
Raised by https://razorpay.slack.com/archives/G01B3LQ9H0W/p1705485717711829?thread_ts=1705483552.271549&cid=G01B3LQ9H0W
The text was updated successfully, but these errors were encountered: