From 27fd1b3b6e4a6f4fcb065bfe3687f71263127ac5 Mon Sep 17 00:00:00 2001 From: Isaac Johnston Date: Tue, 22 Dec 2020 00:49:08 +1300 Subject: [PATCH] Remove reset! of external-model in input-text-base event handlers Fixes #219 --- src/re_com/misc.cljs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/re_com/misc.cljs b/src/re_com/misc.cljs index a50d201b..0944c65a 100644 --- a/src/re_com/misc.cljs +++ b/src/re_com/misc.cljs @@ -128,21 +128,18 @@ (if validation-regex (re-find validation-regex new-val) true)) (reset! internal-model new-val) (when-not change-on-blur? - (reset! external-model @internal-model) (on-change @internal-model))))) :on-blur (handler-fn (when (and on-change change-on-blur? (not= @internal-model @external-model)) - (reset! external-model @internal-model) (on-change @internal-model))) :on-key-up (handler-fn (if disabled? (.preventDefault event) (case (.-which event) 13 (when on-change - (reset! external-model @internal-model) (on-change @internal-model)) 27 (reset! internal-model @external-model) true)))}