Skip to content

Commit

Permalink
Add code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Jun 20, 2023
1 parent db4b7e9 commit 5a23eeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/PDFView/PDFPasswordForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ class PDFPasswordForm extends Component {
</View>
<TextInput
label={this.props.translate('common.password')}
/**
* This is a workaround to bypass Safari's autofill odd behaviour.
* This tricks the browser not to fill the username somewhere else and still fill the password correctly.
*/
autoComplete={Browser.getBrowser() === CONST.BROWSER.SAFARI ? 'username' : 'off'}
autoCorrect={false}
textContentType="password"
Expand Down

0 comments on commit 5a23eeb

Please sign in to comment.