ehynds/jquery-ui-multiselect-widget — Issue #236: Label click not working for options with id's
Author: mkemmerling
Created: 2012-03-08 06:00:08+00:00
State: open

If an option element of the select widget has an id the id of the menu checkbox is set to the same value (line 133 in v1.12):

inputID = this.id || 'ui-multiselect-' + id + '-option-' + i,

This creates invalid HTML since the id is no longer unique in the document. As a result clicking the checkbox label in the menu (always positioned after the original select widget) won't toggle the checkbox anymore.

Something like:

inputID = 'ui-multiselect-' + (this.id || id + '-option-' + i),

would fix the issue.