-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Completely ignore clicks on disabled items #382
Conversation
Intends to close #381 |
Great catch! Thanks for adding the extra tests too. The test that disabled option links are clickable needs to actually check something though - I'm not sure how to do that, but there should be an Probably be worth adding a test for the links with There might be issues with the slightly dumb DOM emulation here - there's a better one that's been suggested by @chantastic for generator-react-component, I'd like to integrate that, then maybe testing this sort of thing will be easier. |
Hey @bruderstein, thanks! Ah, sorry I meant to leave a note in there that it's 80% of the way through but somehow forgot before having to dash on Friday. Looks like |
@bruderstein Totally missed that |
@bhstahl that looks great, it looks like there are conflicts with recent changes though - would you mind checking that and rebasing so I can merge this? Thanks! |
068c909
to
95cbf36
Compare
@JedWatson good to go! Thanks |
Thanks @bhstahl! Would you mind removing the build / dist files? We just need the Nearly there :) |
95cbf36
to
0bb61cd
Compare
Whoops, sorry about that as well @JedWatson . Fixed and also squashed some of the redundant test file commits. |
Much better @bhstahl - thanks :D |
Completely ignore clicks on disabled items
Add functionality to completely ignore clicks on disabled items, unless the target of the click is a link (super edge case, I know).