Skip to content

Commit

Permalink
Add empty option value to styledSelectFormField for required html val…
Browse files Browse the repository at this point in the history
…idation
  • Loading branch information
andreytroeglazov committed Aug 6, 2024
1 parent 56f9e43 commit 2c234cb
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 2c234cb

Please sign in to comment.