grav-plugin-form
grav-plugin-form copied to clipboard
Fixed multiple select optgroup selected bug
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"