Fork me on GitHub

I spent so much time submitting this issue. Here’s a byproduct: <- click the checkbox


sadly, css transitions are slow and jerky in ios safari


does reagent have a logo? i need something visual for a slide deck 🙂


and a sticker for macbook


@gadfly361 was handing out Reagent stickers at the last Conj - they are pretty sweet 🙂 The logo can be seen at the top of or 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:


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.


That's a picture of the stickers I have


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")))}])

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.


@kenny use :on-input


@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 which browser are you using for testing?


Had to step out for a bit.


One workaround if you want the keyboard is <input type="text" pattern="\d*"> or something like it