Skip to content

reloadData + valueForKeyPath#376

Open
Julioacarrettoni wants to merge 2 commits intonicklockwood:masterfrom
Julioacarrettoni:PR_branch
Open

reloadData + valueForKeyPath#376
Julioacarrettoni wants to merge 2 commits intonicklockwood:masterfrom
Julioacarrettoni:PR_branch

Conversation

@Julioacarrettoni
Copy link
Copy Markdown

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