From 715711e6d718a79744dd4ec2eb570f8d0732de3b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 21 Feb 2022 11:10:20 -0800 Subject: [PATCH] New: Auto focus input when editing release group during manual import Closes #4906 --- .../ReleaseGroup/SelectReleaseGroupModalContent.css | 7 +++++++ .../ReleaseGroup/SelectReleaseGroupModalContent.js | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.css diff --git a/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.css b/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.css new file mode 100644 index 000000000..72dfb1cb6 --- /dev/null +++ b/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.css @@ -0,0 +1,7 @@ +.modalBody { + composes: modalBody from '~Components/Modal/ModalBody.css'; + + display: flex; + flex: 1 1 auto; + flex-direction: column; +} diff --git a/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.js b/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.js index a345e2a06..371b876a9 100644 --- a/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.js +++ b/frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import { inputTypes, kinds } from 'Helpers/Props'; +import { inputTypes, kinds, scrollDirections } from 'Helpers/Props'; import Button from 'Components/Link/Button'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; @@ -10,6 +10,7 @@ import ModalContent from 'Components/Modal/ModalContent'; import ModalHeader from 'Components/Modal/ModalHeader'; import ModalBody from 'Components/Modal/ModalBody'; import ModalFooter from 'Components/Modal/ModalFooter'; +import styles from './SelectReleaseGroupModalContent.css'; class SelectReleaseGroupModalContent extends Component { @@ -57,7 +58,10 @@ class SelectReleaseGroupModalContent extends Component { Manual Import - Set Release Group - +
Release Group @@ -66,6 +70,7 @@ class SelectReleaseGroupModalContent extends Component { type={inputTypes.TEXT} name="releaseGroup" value={releaseGroup} + autoFocus={true} onChange={this.onReleaseGroupChange} />