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
The text in the select box should not be rendered like the placeholder, e.g. the chosen-default class should not be added, so it is possible to visually distinguish between a select element that has a option set vs. one that hasn't.
Actual behavior
The chosen-default class is added and with it, it's almost impossible to see if a item is selected (except the 'x' icon).
Environment
Chosen Version: 1.8.2
jQuery or Prototype Version: 3.2.1
Browser and Version: any
OS and Version: any
Additional information
I think the issue stems from this line, which does not distinguish between placeholder text and option text when deciding whether to add the chosen-default class:
Steps to reproduce
Expected behavior
The text in the select box should not be rendered like the placeholder, e.g. the
chosen-default
class should not be added, so it is possible to visually distinguish between a select element that has a option set vs. one that hasn't.Actual behavior
The
chosen-default
class is added and with it, it's almost impossible to see if a item is selected (except the 'x' icon).Environment
Additional information
I think the issue stems from this line, which does not distinguish between placeholder text and option text when deciding whether to add the
chosen-default
class:chosen/coffee/chosen.jquery.coffee
Line 387 in 56b48d4
The text was updated successfully, but these errors were encountered: