Skip to content

Commit

Permalink
Merge pull request #1996 from andreytroeglazov/empty-option-value
Browse files Browse the repository at this point in the history
Add empty option value to styledSelectFormField for required html validation
  • Loading branch information
mpscholten authored Aug 7, 2024
2 parents 5630059 + 2c234cb commit 2ad0ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IHP/View/CSSFramework.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ instance Default CSSFramework where
autofocus={autofocus}
{...additionalAttributes}
>
<option selected={not isValueSelected} disabled={True}>{placeholder}</option>
<option value="" selected={not isValueSelected} disabled={True}>{placeholder}</option>
{forEach (options fieldType) (getOption)}
</select>

Expand Down

0 comments on commit 2ad0ea6

Please sign in to comment.