This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-22
Channels
- # adventofcode (12)
- # announcements (6)
- # aws (5)
- # babashka (57)
- # beginners (40)
- # calva (17)
- # clojure-europe (10)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (3)
- # clojuredesign-podcast (4)
- # cursive (3)
- # datomic (9)
- # etaoin (5)
- # fulcro (12)
- # hyperfiddle (42)
- # missionary (2)
- # off-topic (11)
- # reagent (6)
- # scittle (131)
- # squint (3)
- # tools-deps (4)
- # uncomplicate (1)
- # vscode (1)
Hey there! I have a question about handling inputs. I use international qwerty with compose key and in HTML input it works but with inputs with ratom storage it seems that it doesn't (probably because it's sending every keystroke to the ratom) my example input :
[:input {:type "text"
:value @recipe-title
:on-change #(reset! recipe-title (-> % .-target .-value))}]
with
recipe-title being a reagent atom. Any idea on how to do this ? I'm
hoping I can avoid doing something too mutable here. Otherwise a
workaround I'm thinking is generating input
with a custom id and extracting the value there.
Thanks by advance 🙏:skin-tone-2:I can't reproduce it on Reagent 1.2.0 with React 17.0.2.
E.g. I press the compose key, then "
, then u
and successfully get a ü
in an input field that's backed by a reaction.
I can reproduce it on the home page of Reagent (https://reagent-project.github.io/) but it might be using an older version of Reagent and/or React.