diff --git a/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss b/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss index 7b70c608..4130e5ef 100644 --- a/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss +++ b/src/front/Components/DesignSystem/Form/Elements/InputField/classes.module.scss @@ -111,6 +111,7 @@ position: absolute; background: $white; transform: translateY(35px); + transition: transform 0.3s ease-in-out; } &:focus { diff --git a/src/front/Components/DesignSystem/Select/index.tsx b/src/front/Components/DesignSystem/Select/index.tsx index 3c0453c7..9a389c2d 100644 --- a/src/front/Components/DesignSystem/Select/index.tsx +++ b/src/front/Components/DesignSystem/Select/index.tsx @@ -26,6 +26,7 @@ type IState = { isOpen: boolean; listWidth: number; listHeight: number; + selectedOption: IOption | null; }; export default class Select extends React.Component { @@ -39,13 +40,14 @@ export default class Select extends React.Component { isOpen: false, listHeight: 0, listWidth: 0, + selectedOption: null, }; this.toggle = this.toggle.bind(this); this.onSelect = this.onSelect.bind(this); } public override render(): JSX.Element { - const selectedOption = this.props.selectedOption; + const selectedOption = this.state.selectedOption ?? this.props.selectedOption; return (