grav-plugin-form icon indicating copy to clipboard operation
grav-plugin-form copied to clipboard

Fixed multiple select optgroup selected bug

Open hdwebpros opened this issue 7 years ago • 0 comments

Right now, if you use 2 select optgroups it just automatically selects the first option of every group. It also ignores the placeholder.

This fix checks for a placeholder and uses that. If not, it just uses the first selection of the first group, and doesn't set any others to "selected"

hdwebpros avatar Aug 24 '18 15:08 hdwebpros