Add required attribute for radio fields and selects #628
This commit is contained in:
parent
62da244763
commit
d8bdcae2d5
@ -587,7 +587,7 @@ selectFieldHelper outside onOpt inside opts' = Field
|
||||
flip mapM_ opts $ \opt -> inside
|
||||
theId
|
||||
name
|
||||
attrs
|
||||
((if isReq then (("required", "required"):) else id) attrs)
|
||||
(optionExternalValue opt)
|
||||
((render opts val) == optionExternalValue opt)
|
||||
(optionDisplay opt)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user