-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: 23369 back button navigation fixed for ondify steps #23864
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,7 @@ | |
height: 92% !important; | ||
} | ||
} | ||
|
||
.onfido-sdk-ui-NavigationBar-back { | ||
visibility: hidden; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,16 @@ class RequestorOnfidoStep extends React.Component { | |
constructor(props) { | ||
super(props); | ||
this.submit = this.submit.bind(this); | ||
this.goBack = this.goBack.bind(this); | ||
} | ||
|
||
goBack(...args) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't saw that one, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
const onfidoBack = document.querySelector('.onfido-sdk-ui-NavigationBar-back'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This caused deploy blocker - #24343. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dang, I didn't encountered this during my testing on offline... |
||
if (onfidoBack && !onfidoBack.classList.contains('onfido-sdk-ui-NavigationBar-disabled')) { | ||
onfidoBack.click(); | ||
} else { | ||
this.props.onBackButtonPress(...args); | ||
} | ||
} | ||
|
||
submit(onfidoData) { | ||
|
@@ -50,7 +60,7 @@ class RequestorOnfidoStep extends React.Component { | |
stepCounter={{step: 3, total: 5}} | ||
shouldShowGetAssistanceButton | ||
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_BANK_ACCOUNT} | ||
onBackButtonPress={this.props.onBackButtonPress} | ||
onBackButtonPress={this.goBack} | ||
/> | ||
<FullPageOfflineBlockingView> | ||
<ScrollView contentContainerStyle={styles.flex1}> | ||
|
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.
if you could add the explanation comment why we are hiding this button
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.
fixed