Add a BoundField method which returns the attributes it would have passed to the widget for use with JSX spread operator
Come up with a better/more intuitive name for
BoundField - its name was never day-to-day API in Django due to Python having an iteration protocol and
Create a "Field" which wraps a FormSet, allowing you to manage a list of items with a Form.
Add more special case events for text inputs
onFocusshould be able to clear code=required errors
Add the ability to specify success messages for fields.
form.addError() need to remove the corresponding field from
clean()to mark a particular field as invalid, the field's cleanedData must have been valid up to that point. It forces the user to go back to the field. Scenario: password and confirm. When they don't match use
clean()to show the error message on confirm. Now if the user edits password to match confirm, validation won't work, as there's no
FileFields need an overhaul on the client side - there are a growing number of Widget.prototype flags which could potentially be used by custom Widgets, but in the core library are only there for special handling of FileFields.
keyattrs and increment it when an attempt is made to update a file input, to force React to recreate it?
form.fieldsis effectively part of Form instance state, as it's deep-cloned from
form.baseFields- could add an own property to
Is there a common approach that could be used to tweak particular field or widget properties on the fly?
Add support for populating data
onChange without providing a containing
Theoretically, it should be easy to persist form state should the user refresh or accidentally navigate away - put
localStorage in the
onStateChange callback, pass it as
initial if present when creating initial component state, clear it after successfully using
Externalise mutable form state - a form/formset should provide a reference to an object to be set in a component's state.