From db4b7e9650aa3507cbd9c4294d48b53e9669e64c Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Tue, 20 Jun 2023 16:33:37 +0200 Subject: [PATCH 1/2] Use username autoComplete in PDFPasswordForm for Safari --- src/components/PDFView/PDFPasswordForm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/PDFView/PDFPasswordForm.js b/src/components/PDFView/PDFPasswordForm.js index c60c9b4cef72..92c7dabb2fe3 100644 --- a/src/components/PDFView/PDFPasswordForm.js +++ b/src/components/PDFView/PDFPasswordForm.js @@ -11,6 +11,8 @@ import compose from '../../libs/compose'; import withLocalize, {withLocalizePropTypes} from '../withLocalize'; import withWindowDimensions, {windowDimensionsPropTypes} from '../withWindowDimensions'; import shouldDelayFocus from '../../libs/shouldDelayFocus'; +import * as Browser from '../../libs/Browser'; +import CONST from '../../CONST'; const propTypes = { /** If the submitted password is invalid (show an error message) */ @@ -104,7 +106,7 @@ class PDFPasswordForm extends Component { Date: Tue, 20 Jun 2023 18:39:50 +0200 Subject: [PATCH 2/2] Add code documentation --- src/components/PDFView/PDFPasswordForm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/PDFView/PDFPasswordForm.js b/src/components/PDFView/PDFPasswordForm.js index 92c7dabb2fe3..17ab1b0a99d5 100644 --- a/src/components/PDFView/PDFPasswordForm.js +++ b/src/components/PDFView/PDFPasswordForm.js @@ -106,6 +106,10 @@ class PDFPasswordForm extends Component {