From 30980242a330a9fa5c4d9f78bb650b2bc185a418 Mon Sep 17 00:00:00 2001 From: sundasnoreen12 Date: Tue, 18 Feb 2025 13:47:17 +0500 Subject: [PATCH] fix: remove check for floating label --- src/common-components/FormGroup.jsx | 2 +- src/register/RegistrationPage.test.jsx | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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: {