From a531cb1a8ff2926674d2fda5561e9b1b4e088739 Mon Sep 17 00:00:00 2001 From: DjebbZ Date: Tue, 10 Apr 2018 11:23:16 +0200 Subject: [PATCH] Create a devcard to exhibit the problem with #148 I had to change some config in project.clj otherwise Fighweel wouldn't run. --- project.clj | 14 +++++++------- test/sablono/input_test.cljs | 8 +++++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/project.clj b/project.clj index 351fafe..10fa5b2 100644 --- a/project.clj +++ b/project.clj @@ -18,7 +18,7 @@ [rum "0.11.2" :exclusions [sablono]]] :plugins [[lein-cljsbuild "1.1.7"] [lein-doo "0.1.10"] - [lein-figwheel "0.5.15"] + [lein-figwheel "0.5.16-SNAPSHOT"] [perforate "0.3.4"]] :resource-paths ["test-resources" "target"]} :provided {:dependencies [[cljsjs/create-react-class "15.6.2-0"] @@ -39,7 +39,7 @@ [{:id "devcards" :compiler {:asset-path "devcards" - :aot-cache true + ;:aot-cache true :main sablono.test.runner :output-to "target/public/sablono.js" :output-dir "target/public/devcards" @@ -52,7 +52,7 @@ {:id "benchmark" :compiler {:asset-path "target/benchmark/out" - :aot-cache true + ;:aot-cache true :main sablono.benchmark :npm-deps {:benchmark "1.0.0" @@ -69,7 +69,7 @@ {:id "nodejs" :compiler {:asset-path "target/nodejs/out" - :aot-cache true + ;:aot-cache true :main sablono.test.runner :npm-deps {:benchmark "1.0.0" @@ -87,7 +87,7 @@ {:id "none" :compiler {:asset-path "target/none/out" - :aot-cache true + ;:aot-cache true :main sablono.test.runner :output-to "target/none/sablono.js" :output-dir "target/none/out" @@ -99,7 +99,7 @@ {:id "advanced" :compiler {:asset-path "target/advanced/out" - :aot-cache true + ;:aot-cache true :main sablono.test.runner :output-dir "target/advanced/out" :optimizations :advanced @@ -116,7 +116,7 @@ {:id "sample" :compiler {:asset-path "target/sample/out" - :aot-cache true + ;:aot-cache true :main example.core :output-dir "target/sample/out" :output-to "target/sample/sablono.js" diff --git a/test/sablono/input_test.cljs b/test/sablono/input_test.cljs index a311621..079e36f 100644 --- a/test/sablono/input_test.cljs +++ b/test/sablono/input_test.cljs @@ -1,7 +1,8 @@ (ns sablono.input-test (:require [clojure.pprint :refer [pprint]] [devcards.core :refer-macros [defcard]] - [rum.core :as rum])) + [rum.core :as rum] + [sablono.core :refer [html] :refer-macros [html]])) (def fruits [["grapefruit" "Grapefruit"] @@ -108,3 +109,8 @@ (defcard select-toggle-issue-145 (select-toggle (atom ["1st" "2nd" "3rd"]))) + +(defcard input-conflict-issue-148 + (html [:div [:input {:type "text" + :value "hello world" + :on-change (fn [e] (println e))}]]))