-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Replace javascript:void(0) with # #1377
Conversation
Is there a reason it needs to be an anchor tag at all if it doesn't need an href? Would a span do just as well? |
Agree with @kenearley |
I suppose there isn't a reason for it to be an anchor, but changing that is a much bigger change. |
And what if we leave out the href attribute? |
Ah yeah. That might be the better solution. |
Done and done. Works in IE8 even. |
While testing #1385, I noticed that the cursor doesn't change to pointer when you take the href away. That sucks and I think I'm inclined to just put the href back instead of adding style. |
Whatever works. It's not too big of a deal either way. |
- CSS Updates #1368, #1371 - Prevent text selection on Chosen #1374 - single_backstroke_delete defaults to true #1375 - No longer expose classes to window context #1389 - Single select value fix #1392 - Remove javascript:void and attr references #1385, #1377 - Disable Chosen on iPhone / iPod and Android mobile devices by default #1388 - Add Destroy Method #1396 - Option to Hide Selected & Disabled Options #1404 - Always clear result highlight #1407 - Replace characters only once #1411 - Document all the things. #1366, #1376, #1383 - Add Gemfile for compass dependency #1373 - Update copyright and license link #1397 - Add @koenpunt as a maintainer #1399 - Add anchors to documentation headers #1395 - Updated stackoverflow instructions #1403
@kenearley @stof @koenpunt
Fixes:
We don't need to add a
preventDefault
because all clicks on.chzn-container
already have apreventDefault