-
Notifications
You must be signed in to change notification settings - Fork 24
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
3314 Gallery View Unresponsive #3601
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it's more appropriate to keep the currSelected
variable that tracks the label's validation in ValidationMenu
instead of moving it up to Modal
! I think that it just needs to be set to null at the right time.
The currSelected
variable is correctly set to agree/disagree/unsure when moving to a new label in ValidationMenu
in the function showValidationOnExpandedView()
. In updateReferenceCard()
, either showValidationOnExpandedView()
is called if there is a user validation for the new label or _removeValidationVisualsOnExpandedView()
if there is not. So it seems that setting currSelected
to null
in _removeValidationVisualsOnExpandedView()
would probably do it!
54c87f4
to
6e5bf0c
Compare
Thanks, that makes a lot of sense. Didn't realize that function was also being called when the modal closes. Really appreciate the help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be working great!
Resolves #3314
Updated the currSelected variable so it is in the modal class. Now it resets whenever the modal closes so that the expanded view clicking works 100% of the time.
Testing instructions
Things to check before submitting the PR