We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
emailField
Maybe Text
1 parent 2d2623f commit 69217cdCopy full SHA for 69217cd
IHP/View/Form.hs
@@ -503,12 +503,13 @@ colorField field = (textField field) { fieldType = ColorInput }
503
-- </div>
504
--
505
-- See 'textField' for examples of possible form control options.
506
-emailField :: forall fieldName model.
+emailField :: forall fieldName model value.
507
( ?formContext :: FormContext model
508
- , HasField fieldName model Text
+ , HasField fieldName model value
509
, HasField "meta" model MetaBag
510
, KnownSymbol fieldName
511
, KnownSymbol (GetModelName model)
512
+ , InputValue value
513
) => Proxy fieldName -> FormField
514
emailField field = (textField field) { fieldType = EmailInput }
515
{-# INLINE emailField #-}
0 commit comments