diff --git a/src/reagent/impl/template.cljs b/src/reagent/impl/template.cljs index 46eef47..9223856 100644 --- a/src/reagent/impl/template.cljs +++ b/src/reagent/impl/template.cljs @@ -105,7 +105,8 @@ (let [node (.' this getDOMNode) node-value (.' node :value)] (when (not= value node-value) - (if-not (has-selection-api? (.' node :type)) + (if-not (and (identical? node (.-activeElement js/document)) + (has-selection-api? (.' node :type))) ; just set the value, no need to worry about a cursor (.! node :value value)