-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
BugSomething isn't working.Something isn't working.RefinedWhen the issue has been discussed and is ready for the developer.When the issue has been discussed and is ready for the developer.
Description
Terms
- Before you openning this issue, i have checked if the issue has already been reported.
Bagisto Version(s) affected
2.3
Issue Description
In the customer profile edit form, when entering valid values with spaces in fields like Email, Phone Number, or Zip Code, the system shows a validation error. Since leading/trailing spaces can be trimmed automatically, a validation error should not appear in these cases.
Preconditions
bagisto setup properly
Steps to reproduce
- Log in to the shop front as a customer.
- Go to My Account → Edit Profile.
- Enter valid values but with leading or trailing spaces in the fields:
Email: " user@example.com "
Phone Number: " 9876543210 "
Zip Code: " 110045 "
Expected Result
- The system should trim extra spaces automatically.
- No validation error should be shown if the trimmed input is valid.
Actual Result
A validation error is displayed, even though the entered values are valid except for extra spaces.
Screenshots
https://webkul.chatwhizz.com/share/view-recording/68d66b4b8a997605e1f67750
Additional context
No response
Metadata
Metadata
Assignees
Labels
BugSomething isn't working.Something isn't working.RefinedWhen the issue has been discussed and is ready for the developer.When the issue has been discussed and is ready for the developer.