Active Select sets the first option in a target to selected if no default is specified. While this is necessary for activeselect elements to work, it makes the behavior of normal select elements inconsistent: if they are active select targets, an option is selected whether the developer wishes it or not, but if they are not active select targets nothing is selected unless the developer specifies a default.

Where this becomes a problem is when a multi-select list is supposed to show previously selected settings. If one is automatically selected, the list will not be accurate if nothing was previously selected. The attached patch checks to see if an element is an activeselect element before forcing an option to be selected.

CommentFileSizeAuthor
activeselect.js_.txt768 bytesdarren oh

Comments

haza’s picture

Status: Needs review » Closed (won't fix)

This version of Active Select is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.