@ -43,7 +43,9 @@ const BoardMembershipsStep = React.memo(
);
useEffect(() => {
searchField.current.focus();
searchField.current.focus({
preventScroll: true,
});
}, []);
return (
@ -63,7 +63,9 @@ const AddStep = React.memo(({ onCreate, onClose }) => {
}, [openStep]);
nameField.current.focus();
nameField.current.focus({
useDidUpdate(() => {
@ -89,7 +89,9 @@ const LabelsStep = React.memo(
if (step) {
@ -61,7 +61,9 @@ const AddStep = React.memo(
@ -88,7 +88,9 @@ const UserAddStep = React.memo(
}, [onCreate, data]);
emailField.current.focus();
emailField.current.focus({
@ -90,7 +90,9 @@ const UserEmailEditStep = React.memo(
}, [email, usePasswordConfirmation, onUpdate, onClose, data]);
@ -71,7 +71,9 @@ const UserPasswordEditStep = React.memo(
}, [usePasswordConfirmation, onUpdate, data]);
passwordField.current.focus();
passwordField.current.focus({
@ -90,7 +90,9 @@ const UserUsernameEditStep = React.memo(
}, [username, usePasswordConfirmation, onUpdate, onClose, data]);
usernameField.current.focus();
usernameField.current.focus({
@ -3,9 +3,10 @@ import { Input as SemanticUIInput } from 'semantic-ui-react';
import InputPassword from './InputPassword';
import InputMask from './InputMask';
const Input = SemanticUIInput;
export default class Input extends SemanticUIInput {
static Password = InputPassword;
Input.Password = InputPassword;
Input.Mask = InputMask;
static Mask = InputMask;
export default Input;
focus = (options) => this.inputRef.current.focus(options);
}
@ -1,8 +1,8 @@
import InputMask from 'react-input-mask';
export default class MaskedInput extends InputMask {
focus() {
this.getInputDOMNode().focus();
focus(options) {
this.getInputDOMNode().focus(options);
select() {