The address element should strip trailing whitespace from input

Created on 24 August 2018, about 6 years ago
Updated 3 December 2023, 12 months ago

I've come across the same issue in the past week where customers are unable to enter their postcode if they accidentally add a space at the end of it. Is there no way we can trim() (or something like that) it before it reaches validation? I'm testing this on UK postal codes.

If not, can someone point me in the right direction where I can do this with a custom module?

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom kevla

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024