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
In Chosen.prototype.container_mousedown, 'click.chosen' is bound to $(document). This prevents pop out windows from closing their Chosen selects on click away, as document references the parent document rather than the pop out window document
This only occurs if disable_search is set to true, because it prevents the input from triggering a blur on click away. When disable_search is false, that blur will close the select.
I'd suggest fixing by instead binding to $(this.container[0].ownerDocument), and therefore also unbinding from that in Chosen.prototype.destroy and Chosen.prototype.close_field.
The text was updated successfully, but these errors were encountered:
In
Chosen.prototype.container_mousedown
,'click.chosen'
is bound to$(document)
. This prevents pop out windows from closing their Chosen selects on click away, asdocument
references the parent document rather than the pop out window documentThis only occurs if
disable_search
is set totrue
, because it prevents the input from triggering a blur on click away. Whendisable_search
isfalse
, that blur will close the select.I'd suggest fixing by instead binding to
$(this.container[0].ownerDocument)
, and therefore also unbinding from that inChosen.prototype.destroy
andChosen.prototype.close_field
.The text was updated successfully, but these errors were encountered: