-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Fix clicks on child elements of a tab #253
Conversation
Will have a look at this after the week-end. |
@chaitanyagupta thanks for this PR, Looks like its the same 'bug' as in #242? |
@Vuurvlieg yes the issue does look very similar. |
Hold on folks, just for a second. Yes this PR right here proves to be useful in this case, I just finished some testing with modern and some legacy browsers (I even found some unsolved and unrelated issues there), but this doesn't mean we change all handlers to work this way, as each handler has it's own quirks and whistles. |
@chaitanyagupta do you have a demo to showcase my code is faulty? I want to see it before anything else. |
@thednp I have three versions of the same page for you. Click on any of the links under the "Features" heading on that page (i.e. Organize, Search, Unread Tasks, etc.)
Hope this demonstrates the issue effectively. FWIW the bootstrap theme I am using is: https://themes.getbootstrap.com/product/wingman-landing-page-app-template/ |
Just so you know, there is one more issue that I had to fix before I could get the demo working with this PR. It relates to not setting the |
I am using a bootstrap theme which has a slightly complex heirarchy of elements inside a tab:
A click on any element inside the
div.card-body
doesn't work. This PR fixes that by usingevent.currentTarget
instead ofevent.target
.Hope I have not broken any existing use case! If so, will be happy to fix it.