Skip to content

Instantly share code, notes, and snippets.

@devasiajoseph
Last active August 29, 2015 14:09
Show Gist options
  • Save devasiajoseph/b809ef55ebb4290743a3 to your computer and use it in GitHub Desktop.
Save devasiajoseph/b809ef55ebb4290743a3 to your computer and use it in GitHub Desktop.
Om password field Firefox issue
(ns app.user
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[goog.dom :as gdom]))
(def password-data (atom {}))
(defn password-input [data owner]
(reify
om/IRender
(render [this]
(dom/form #js {}
(dom/input #js {:type "password" :id "test-password"})
(dom/input #js {:type "password" :id "confirm-password"})))))
(om/root password-input password-data
{:target (gdom/getElement "test")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment