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

Refactor: QuestionWidget needs unified means for getting/setting Answers. #1422

Closed
heyjamesknight opened this issue Sep 6, 2017 · 1 comment
Assignees
Labels

Comments

@heyjamesknight
Copy link
Contributor

This is an intermediate step in preparation for #378, and must be completed before #1421.

In order to ensure setAnswer is called whenever a field is updated, QuestionWidget needs to be modified to provide a unified way for subclasses to set updated answers. Individual subclasses will be responsible for determining when it is appropriate to update the underlying Answer.

The QuestionWidget base class should also be made aware of whether or not the Widget is a member of a FieldList, and whether or not we need to save the new Answer to the underlying form, or wait until the Widget goes off screen (the current behavior).

@seadowg
Copy link
Member

seadowg commented Jul 9, 2021

Closing this, as it looks like the issue that it's in service of has already been closed.

@seadowg seadowg closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants