Skip to content

Support non-input element ref assignment for FormSteps#6340

Merged
aduth merged 5 commits intomainfrom
aduth-fix-selfie-validate
May 13, 2022
Merged

Support non-input element ref assignment for FormSteps#6340
aduth merged 5 commits intomainfrom
aduth-fix-selfie-validate

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 12, 2022

Regression of #6222

Why: Since not all "fields" will be associated with an input element, as is the case in the desktop strict liveness selfie capture step.

This resolves an issue where it is not possible to continue identity proofing for the unshipped, disabled strict liveness step of document capture.

Steps to reproduce:

  1. On desktop, go to https://int-identity-oidc-sinatra.app.cloud.gov/?ial=2
  2. Click "Sign in"
  3. Complete proofing up to document capture
  4. Add fake images and click "Continue"
  5. Capture a photo of yourself
  6. Click "Submit"

Before: Nothing happened. Error in console "TypeError: o.checkValidity is not a function".
After: Form submits.

Relevant code:

useImperativeHandle(ref, () => labelRef.current);

aduth added 4 commits May 12, 2022 08:58
**Why**: Since not all "fields" will be associated with an input element, as is the case in the desktop strict liveness selfie capture step.

[skip changelog]
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@aduth aduth merged commit f8c279f into main May 13, 2022
@aduth aduth deleted the aduth-fix-selfie-validate branch May 13, 2022 12:43
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.

2 participants