Fix selectField selected attr

This commit is contained in:
Michael Snoyman 2011-05-18 11:26:20 +03:00
parent 87535d468b
commit 7a9f7cf798

View File

@ -295,7 +295,7 @@ selectField opts = Field -- FIXME won't work for optional yet
$if not isReq
<option value=none>
$forall pair <- pairs
<option value=#{show $ fst pair} :(==) val (fst $ snd pair):selected>#{fst $ snd pair}
<option value=#{show $ fst pair} :(==) val (pack $ show $ fst pair):selected>#{fst $ snd pair}
|]
}
where