Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

[BUG] Text input string with leading/trailing whitespaces, fails on validation. #23

Open
eXtranium opened this issue Mar 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@eXtranium
Copy link
Contributor

In other project using text input string will considered as empty when the input value starts or ends with any spaces.

Link to the issue in another project https://github.com/orgs/heusalagroup/projects/1/views/1?pane=issue&itemId=22061524

Traced the problem to file useFieldValidateStringWithStateValueCallback.ts

  • line 41 const parsedStateValue: string = trim(stateValueString);
  • line 53 return parsedStateValue === (propValue ?? '');

Not sure about the purpose of trimming, so I'll leave it here for now.

@eXtranium eXtranium added the bug Something isn't working label Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant