-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto converting the tags that a user enters to lower case, rather than giving a validation error #1647
Comments
It looks like the code change need to happen in the following file: At Line 84: Can the result of the input be passed to a function that uses the toLowerCase() method? //Function to convert tags into LowerCase
//And use .map method to apply array to toLower function I try to get condenser running to test this approach. |
I think the code at line 84 is only testing that the tag is all lowercase. It needs to be converted to lower case before the validation is run. |
I wrote some code that fixed the issue but after reading more info I realized I need a better feel for redux and then I could fix this in a more appropriate fashion. |
So when should this transformation occur? It could be done |
Making these two changes fixes the issue. My only issue was I wasn't sure if it was ok to make that change directly to the event or if I needed to make a copy and then change that and then pass it to onChange.
|
Oh and that first function is added to the CategorySelector constructor right after categorySelectOnChange |
Ha that's exactly the solution I came up with, but then the "no uppercase" validation warning still remains even though it's converted? I don't think modifying the event should be a problem by the way. Oh and if you also add |
I don't get the error message anymore with that change |
hmm, the extra space removal is a good idea although I had already committed and tested my code so you might want to do a second PR after mine is done. |
Alright, will do! I got the error because I didn't use |
Closing in favor of #2061 |
This is an enhancement issue to track a community developer task.
The text was updated successfully, but these errors were encountered: