diff --git a/ui/app/components/ui/qr-code/qr-code.js b/ui/app/components/ui/qr-code/qr-code.js index 53a0d85d5..c00885341 100644 --- a/ui/app/components/ui/qr-code/qr-code.js +++ b/ui/app/components/ui/qr-code/qr-code.js @@ -59,6 +59,7 @@ function QrCodeView (props) { /> diff --git a/ui/app/components/ui/readonly-input/readonly-input.js b/ui/app/components/ui/readonly-input/readonly-input.js index eba6fd6c2..b3e86c9c6 100644 --- a/ui/app/components/ui/readonly-input/readonly-input.js +++ b/ui/app/components/ui/readonly-input/readonly-input.js @@ -9,6 +9,7 @@ export default function ReadOnlyInput (props) { value, textarea, onClick, + autoFocus = false, } = props const InputType = textarea ? 'textarea' : 'input' @@ -21,6 +22,7 @@ export default function ReadOnlyInput (props) { readOnly onFocus={(event) => event.target.select()} onClick={onClick} + autoFocus={autoFocus} /> ) @@ -32,4 +34,5 @@ ReadOnlyInput.propTypes = { value: PropTypes.string, textarea: PropTypes.bool, onClick: PropTypes.func, + autoFocus: PropTypes.bool, }