Jonny Buchanan

Results 130 comments of Jonny Buchanan

~124KB is the bundle with everything (+deps). This is equivalent to a top-level `require('newforms')` [Since 0.11](https://github.com/insin/newforms/blob/react/CHANGES.md#breaking-changes-1), it's been published to npm as top-level modules, so it's possible to reduce the...

More `Field` vs. `Form` fun, as `Form` holds user input and `Field` knows nothing about it. Even if we catch the transition from empty to not empty in the `Field`...

This is another problem with moving more UI-specific concerns up into `Form`/`Field` definitions, starting to wonder if `widgetAttrs` was such a good idea... [React 0.13 allows you to pass a...

This is pretty doable - the question is what do you want to get back if you pass a `fieldRef` callback when creating a `Form` instance or rendering a `RenderForm`...

React would fire the callback for each rendered widget, leaving it up to you to handle what you do with each ref. Basic example I'm playing with: ![newforms-fieldref](https://cloud.githubusercontent.com/assets/226692/7054810/0f6fde1a-de37-11e4-8540-48a0cb9b27d3.png) This would...

Yes, BUT I haven't tried using it with string template engines since I switched it over to outputting ReactElements. You might have to write some helpers to do a React.renderToStaticMarkup...

How are you getting user input into the form? Having `null` in cleaned data is consistent with providing an "empty" value for a required field, which indicates that `'asdfasdf'` might...

Looks like this is due to this field using an `` by default - [according to the HTML5 spec](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29), its `value` must be set to an empty string when invalid,...

Via @AndrewIngram on Twitter: https://github.com/WiserTogether/django-remote-forms looks perfect for this

An `onChange` handler is always passed as a property of the`attrs` object in the `kwargs` object which is passed to a Widget's `render(name, value, kwargs)` method. If you look at...