Skip to content

Pass formContext properly to ArrayTemplateField, files array and multiselect array#456

Merged
n1k0 merged 31 commits intorjsf-team:masterfrom
olzraiti:fixFormContextFilesAndMultiSelect
Jan 30, 2017
Merged

Pass formContext properly to ArrayTemplateField, files array and multiselect array#456
n1k0 merged 31 commits intorjsf-team:masterfrom
olzraiti:fixFormContextFilesAndMultiSelect

Conversation

@olzraiti
Copy link
Copy Markdown
Contributor

Reasons for making this change

formContext should be passed to every component that renders something. Fixes #441

Checklist

  • I'm updating documentation
    • I've checked the rendering of the Markdown text I've added
    • If I'm adding a new section, I've updated the Table of Content
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

olzraiti added 30 commits July 12, 2016 15:28
Copy link
Copy Markdown
Collaborator

@n1k0 n1k0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@n1k0 n1k0 merged commit dd71a85 into rjsf-team:master Jan 30, 2017
n1k0 added a commit that referenced this pull request Feb 22, 2017
Highlights
---

- Improved performance and reactivity.
- More consistent validation behavior and UX for array field items.

Backward incompatible changes
---

- `ObjectField` and `ArrayField` are now stateless components, their
  local state handling has been dropped entirely, resulting in large
  performance improvements.
- The `defaultFieldValue` helper from the `utils` module has been
  removed, as it wasn't used anymore.

New features
---

* Fix #411:  Enable required field on radio options. (#469)
* Spread `formContext` to `ArrayTemplateField`, `files` and `multiselect`
  arrays (#456)
* From #471: Non-nullable array item fields are now marked as required in
  the UI.

Bugfixes
---

* Don't pass consumed `SchemaField` class names to child component (#439)
* Turn `ObjectField` and `ArrayField` into stateless components (#480)
* Fix #471: Drop default value initialization at the widget level. (#476)

Kudos
---

Special thanks to @crumblix and @knilink for their help on this release.
You guys rock!
@n1k0
Copy link
Copy Markdown
Collaborator

n1k0 commented Feb 22, 2017

Released in v0.43.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants