This PR fixes an issue on the username field on the profile page which would always show 0/30. I made a decision to hide the counter all together when the field is disabled as this seems more logical to me - I can easily add this back in if preferred.
Step 2 - Open src/components/frame/v5/pages/UserProfilePage/partials/UserAccountForm/hooks.tsx and change line 131 to shouldNumberOfCharsBeVisible: true, and line 134 to isDisabled: false,. Confirm the character count is visible and updates correctly.
Diffs
Changes 🏗
Added default value prop to display name field
Made shouldNumberOfCharsBeVisible dependant on whether field is disabled or not
Description
This PR fixes an issue on the username field on the profile page which would always show
0/30
. I made a decision to hide the counter all together when the field is disabled as this seems more logical to me - I can easily add this back in if preferred.Testing
Step 1 - Navigate to http://localhost:9091/account/profile and ensure the max character limit does not display.
Step 2 - Open
src/components/frame/v5/pages/UserProfilePage/partials/UserAccountForm/hooks.tsx
and change line 131 toshouldNumberOfCharsBeVisible: true,
and line 134 toisDisabled: false,
. Confirm the character count is visible and updates correctly.Diffs
Changes 🏗
shouldNumberOfCharsBeVisible
dependant on whether field is disabled or notResolves #3472