yesod-form 1.6.2 → 1.6.3
raw patch · 3 files changed
+7/−2 lines, 3 files
Files
- ChangeLog.md +5/−0
- Yesod/Form/Fields.hs +1/−1
- yesod-form.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,10 @@ # ChangeLog for yesod-form +## 1.6.3++* make sure a select field does not lose the selected value even if a validation on the+ field fails+ ## 1.6.2 * Move `addClass` from private/undocumented in `Yesod.Form.Bootstrap3` to `Yesod.Form.Functions` [#1510](https://github.com/yesodweb/yesod/pull/1510)
Yesod/Form/Fields.hs view
@@ -759,7 +759,7 @@ , fieldEnctype = UrlEncoded } where- render _ (Left _) = ""+ render _ (Left x) = x render opts (Right a) = maybe "" optionExternalValue $ listToMaybe $ filter ((== a) . optionInternalValue) opts selectParser _ [] = Right Nothing selectParser opts (s:_) = case s of
yesod-form.cabal view
@@ -1,5 +1,5 @@ name: yesod-form-version: 1.6.2+version: 1.6.3 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>