fix: remove check for floating label

This commit is contained in:
sundasnoreen12
2025-02-18 13:47:17 +05:00
parent 83ad419a39
commit 30980242a3
2 changed files with 10 additions and 1 deletions

View File

@@ -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}
</Form.Control>

View File

@@ -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: {