aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/app/Form/Input.hs
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/Form/Input.hs')
-rw-r--r--frontend/app/Form/Input.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/app/Form/Input.hs b/frontend/app/Form/Input.hs
index a9648c4..4b1eac8 100644
--- a/frontend/app/Form/Input.hs
+++ b/frontend/app/Form/Input.hs
@@ -6,7 +6,7 @@ where
import Data.Text qualified as T
import Form.Internal
import Miso
-import Miso.String (toMisoString)
+import Miso.String (fromMisoString, toMisoString)
string :: String -> Form T.Text T.Text
string label =
@@ -17,7 +17,8 @@ string label =
[ text (toMisoString label),
input_
[ type_ "text",
- value_ (toMisoString i)
+ value_ (toMisoString i),
+ onInput fromMisoString
]
]
]