harvesthq/chosen — Issue #395: Hide / Show and Chosen Refresh
Author: dconceicao
Created: 2011-12-12 16:00:45+00:00
State: open

Hi,

I'm trying to use Chosen and I'm having a problem when I try to hide and the reshow some of the list options.

For example. Chosen starts with 3 options. On selection and clicking a button the option is hidden using Jquery .hide() and it is added to a "li" list.

If I remove an option from the "li" list then I'm using the show() method of jquery to reactivate the option in the dropdown and after that I'm using the trigger("liszt:updated") to make Chosen to update the new list. However when doing this, the style of the list gets all messed up. The re-shown options lose their CSS and the list appers with a small scrollbar.