this.selected_item is undefined in chosen.jquery.js #607

PremAnup opened this Issue May 3, 2012 · 4 comments

2 participants


With very last version of chosen.jquery.js 0.9.8 (May 2, 2012)
After triggering the liszt:updated event by line:


I get the error:

this.selected_item is undefined in chosen.jquery.js

lline 698: this.selected_item.find("span").text(this.default_text);


@PremAnup Can you share a jsFiddle or a link to a demo page of some kind? Also: what browser are you using?


Patrick, this bug was reproduced here Firefox 12.0, Firebug 1.9.1. Run, select any 2 options, then take a look in console messages.

@pfiller pfiller added a commit that referenced this issue May 8, 2012
@pfiller pfiller Only clean up the deselect trigger for single selects (and don't call…
… the rest of results_reset)

Fixes #603, #607, #608, #609, #610

Thanks @PremAnup. I believe this is now fixed in b028f9e. Please pull the latest and re-open if you're seeing the problem still.

@pfiller pfiller closed this May 8, 2012

Thank you , it is fixed as far as I can see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment