This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-17
Channels
- # bangalore-clj (1)
- # beginners (23)
- # boot (141)
- # cider (68)
- # cljs-dev (29)
- # cljsjs (1)
- # cljsrn (11)
- # clojure (150)
- # clojure-austin (3)
- # clojure-berlin (1)
- # clojure-france (2)
- # clojure-greece (13)
- # clojure-italy (5)
- # clojure-russia (49)
- # clojure-spec (15)
- # clojure-uk (45)
- # clojurescript (152)
- # code-art (1)
- # core-async (75)
- # cursive (12)
- # datascript (2)
- # datomic (90)
- # dirac (5)
- # emacs (10)
- # garden (1)
- # hoplon (52)
- # instaparse (4)
- # juxt (2)
- # lein-figwheel (2)
- # lumo (47)
- # mount (94)
- # off-topic (20)
- # om (21)
- # onyx (14)
- # parinfer (19)
- # pedestal (3)
- # protorepl (13)
- # re-frame (5)
- # reagent (20)
- # slack-help (10)
- # spacemacs (8)
- # specter (57)
- # unrepl (11)
- # untangled (3)
- # vim (1)
- # yada (1)
I spent so much time submitting this issue. Here’s a byproduct: https://koddo.github.io/tmp-cljs-react-with-addons-issue/ <- click the checkbox
@gadfly361 was handing out Reagent stickers at the last Conj - they are pretty sweet 🙂 The logo can be seen at the top of https://github.com/reagent-project or https://avatars3.githubusercontent.com/u/9254615 for the actual image.
So, after seeing the logo pasted here, I thought I might try my hand at making an alternative logo. I'm not a graphic designer or anything but it seemed like a fun way to kill an hour. So I present an incredibly dodgy GIMP-edit reagent logo remix: http://imgur.com/xE8keVa
The difference in thickness between React's electron orbits and the bottle's brackets could be reduced. But all in all, I think it's alright for a little under an hour's work.
the logo reminds me of prince of persia: http://www.crashonline.org.uk/91/images/prince1.gif
Does anyone have a workaround for typing negative numbers into a type=number
input box? For example, take this code:
(defonce input-state (r/atom 0))
(defn hello []
[:input {:type "number"
:value @input-state
:on-change (fn [evt]
(reset! input-state (aget evt "target" "value")))}])
[hello]
If you try and input a negative number into the input box, it will not let you — the input box remains blank after typing a hyphen.
I suppose I could just make the input type=text
and write my own validation logic but then I lose the ability to use the up and down arrows to change the value and the numeric keyboard won’t pop up on mobile devices.@shdzzl I now receive this warning:
Warning: Failed form propType: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`. Check the render method of `ReagentInput`.
I can add a nop fn :onChange
handler to the input but then I am not able to type in a negative number anymore.@kenny It's a React/Chrome issue: https://github.com/facebook/react/issues/1549 - the comment here is what I'm referring to: https://github.com/facebook/react/issues/1549#issuecomment-45417898
One workaround if you want the keyboard is <input type="text" pattern="\d*">
or something like it http://stackoverflow.com/questions/6178556/phone-numeric-keyboard-for-text-input