Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for default value for radio button group in serialize data: #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephanebachelier
Copy link
Contributor

  • Default is set to null but it's easy to override.
  • Add value assigners to control value assignment to data

See comments in #102.
Previous PR in #106 then #112 on minor which is behind master. So this PR is made against master.

cc @rhubarbselleven

 * Default is set to null but it's easy to override.
 * Add value assigners to control value assignment to data
Copy link
Member

@scott-w scott-w left a comment

Choose a reason for hiding this comment

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

Hi @stephanebachelier thanks for submitting this. I appreciate it's been a while but if you can help me understand what's happening here I'll be more than happy to merge this and get it into a new release.


// return value by default
ValueAssigners.registerDefault(function(value) {
return function(obj, key) {
Copy link
Member

Choose a reason for hiding this comment

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

This feels like a complex implementation. Do you see developers adding their own custom ValueAssigners often?

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.

None yet

2 participants