You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (this.active_field && !($(evt.target).hasClass("search-choice" || $(evt.target).parents('.search-choice').first)) && !this.results_showing) {
Obviously not what you intended. first isn't called as a method, hasClass is checking for more than it should be. It's kind of scary this has been in the chosen source all along, because who knows what kind of behavior this is triggering.
The text was updated successfully, but these errors were encountered:
Since "search-choice" is truthy || $(evt.target).parents('.search-choice').first never gets evaluated, thus avoiding runtime erorrs. However, it's probably not what you wanted to do -- looks like updated .hasClass "search-choice" to .hasClass("search-choice") should fix things.
https://github.com/harvesthq/chosen/blob/master/coffee/chosen.jquery.coffee#L316
https://github.com/harvesthq/chosen/blob/master/chosen/chosen.jquery.js#L381
Obviously not what you intended. first isn't called as a method, hasClass is checking for more than it should be. It's kind of scary this has been in the chosen source all along, because who knows what kind of behavior this is triggering.
The text was updated successfully, but these errors were encountered: