harvesthq/chosen — pull request #364 by tobiasgies (2011-11-24 07:09:22+00:00)
Title: Propagation of focus event from the original select to chosen

This relates to PR #240, but I changed the .coffee file instead of the .js file. I think it's handy to have the focus event from the original select propagate to chosen.

This also prevents a nasty problem I encountered when using HTML5 validation attributes (i.e., required) on a select later turned into a chosen field. If the user tries to submit the form with no value selected in the field, the submit will just silently do nothing, because the browser can't focus the select field as it's hidden.