diff --git a/src/common-components/FormGroup.jsx b/src/common-components/FormGroup.jsx index a56cf9b3..fa119c68 100644 --- a/src/common-components/FormGroup.jsx +++ b/src/common-components/FormGroup.jsx @@ -67,7 +67,7 @@ const FormGroup = (props) => { onChange={handleChange} controlClassName={props.borderClass} trailingElement={props.trailingElement} - floatingLabel={!inputValue ? props.floatingLabel : ''} + floatingLabel={props.floatingLabel} > {props.options ? props.options() : null} diff --git a/src/register/RegistrationPage.test.jsx b/src/register/RegistrationPage.test.jsx index 18e4e513..b06ef242 100644 --- a/src/register/RegistrationPage.test.jsx +++ b/src/register/RegistrationPage.test.jsx @@ -618,6 +618,15 @@ describe('RegistrationPage', () => { ...initialState, register: { ...initialState.register, + registrationFormData: { + ...registrationFormData, + formFields: { + name: 'test', + username: 'test', + email: 'test@example.com', + password: 'test', + }, + }, backedUpFormData: { ...registrationFormData }, }, commonComponents: {