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

reloadData + valueForKeyPath #376

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Julioacarrettoni
Copy link

This PR fixes 2 things:

  1. When assigning a new form to a formController or reassigning the existing one the content doesn't refresh, so a "reloadData" was added just after the form is assigned.

  2. When dealing with "multiple choice" fields the app was crashing due to the fact that "valueForKey" was returning the "value" instead of the "field" object inside FXFormOption.
    Using "valueForKeyPath" and changing the current overriding of "valueForKey" to "valueForUndefinedKey" seems to fix this issue.
    To reproduce the issue just run the "BasicExample" with the current form, go to Register and select Gender.

When trying the “BasicExample” the app crashes on any of the “multiple
choice” fields, for example on “Gender”.
This little change fixes this.
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.

1 participant