HomePhabricator
Diffusion Comm 81a47b30ffb0

[web][native] Trimming whitespaces from username at login screen

Description

[web][native] Trimming whitespaces from username at login screen

Summary:
Solving this issue: https://linear.app/comm/issue/ENG-2041/[web]-[native]-bug-whitespaces-arent-trimmed-from-right-side-of

Added onBlur event listener to username field so whenever it goes out of focus, it is trimmed.
It goes out of focus whenever we swap fields or click submit button, so it works.

On native we simply trim whitespaces whenever user types them as blur events aren't handled in a same way (input field doesn't go out of focus when we click submit button, so there's no good place for trimming it)

Mobile:

Web:

Test Plan:
Build application.
Tested scenarios manually.

Reviewers: tomek, ashoat, atul, kamil

Reviewed By: tomek, ashoat

Subscribers: abosh, kamil, atul, ashoat, tomek

Differential Revision: https://phab.comm.dev/D5365

Details

Provenance
przemekAuthored on Oct 14 2022, 2:05 AM
Reviewer
tomek
Differential Revision
D5365: [web][native] Trimming whitespaces from username at login screen
Parents
rCOMM0adf5602760f: Revert "Temporary changes for staff release"
Branches
Unknown
Tags
Unknown