diff --git a/Yesod/Form/Fields.hs b/Yesod/Form/Fields.hs
--- a/Yesod/Form/Fields.hs
+++ b/Yesod/Form/Fields.hs
@@ -328,7 +328,7 @@
 <script>if (!('autofocus' in document.createElement('input'))) {document.getElementById('#{theId}').focus();}
 |]
           toWidget [cassius|
-            #{theId}
+            ##{theId}
               -webkit-appearance: textfield
             |]
     , fieldEnctype = UrlEncoded
diff --git a/yesod-form.cabal b/yesod-form.cabal
--- a/yesod-form.cabal
+++ b/yesod-form.cabal
@@ -1,5 +1,5 @@
 name:            yesod-form
-version:         1.2.1.1
+version:         1.2.1.2
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
