Skip to content

Commit

Permalink
Merge pull request #71 from stefan-hoeck/empty_validated
Browse files Browse the repository at this point in the history
[ refactor ] dont validate Empty nodes
  • Loading branch information
stefan-hoeck committed Apr 23, 2024
2 parents fd0c4b3 + c0ee1a2 commit 137386c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra/src/Text/HTML/Validation.idr
Expand Up @@ -36,7 +36,8 @@ parameters {0 i : Type}
||| displayed.
export
validated : i -> Node e -> Node e
validated u n =
validated _ Empty = Empty
validated u n =
cell env.widgetCls [] [n, cell env.msgCls [ref (env.msgID u)] []]

||| A validated text field.
Expand Down

0 comments on commit 137386c

Please sign in to comment.