Skip to content
This repository has been archived by the owner on Apr 23, 2018. It is now read-only.

Bug when selecting item - deselect it and select it again #38

Open
Adidi opened this issue Jun 2, 2013 · 0 comments
Open

Bug when selecting item - deselect it and select it again #38

Adidi opened this issue Jun 2, 2013 · 0 comments

Comments

@Adidi
Copy link

Adidi commented Jun 2, 2013

If you select it in the second time the item appear in the list (but can't be selected) -
this is happens because when you deselct an item there is set style block and when you select it again the display block override the display none in result-selected css rule set to that li:

the fix is in line 591 instead

result.removeClass("result-selected").addClass("active-result").setStyle('display', 'block');

remove the set style display block

result.removeClass("result-selected").addClass("active-result");

Because I don't understand why there is need to set it display block if you remove the result-selected css rule.

Alternatively you can set the css rule:

.chzn-container-multi .chzn-drop .result-selected {
  display: none;
}

to

.chzn-container-multi .chzn-drop .result-selected {
  display: none !important;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant