diff --git a/project.clj b/project.clj index 511ab9a..10f06a3 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject reagent "0.5.1-rc2" +(defproject reagent "0.5.1-SNAPSHOT" :url "http://github.com/reagent-project/reagent" :license {:name "MIT"} :description "A simple ClojureScript interface to React" diff --git a/src/reagent/impl/template.cljs b/src/reagent/impl/template.cljs index 261c3c3..1c8e606 100644 --- a/src/reagent/impl/template.cljs +++ b/src/reagent/impl/template.cljs @@ -106,7 +106,9 @@ node-value (.' node :value)] (when (not= value node-value) (if-not (and (identical? node (.-activeElement js/document)) - (has-selection-api? (.' node :type))) + (has-selection-api? (.' node :type)) + (string? value) + (string? node-value)) ; just set the value, no need to worry about a cursor (.! node :value value)