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

whitespace removal #207

Open
mackenziepl opened this issue Sep 2, 2020 · 0 comments
Open

whitespace removal #207

mackenziepl opened this issue Sep 2, 2020 · 0 comments

Comments

@mackenziepl
Copy link

Hi, I have a question, I wish that each time I typed certain characters in the field, it would remove the whitespace. Currently, it only works when we enter a character other than a space. Is there any workaround for this ??

this.setState({ username: e.target.value.split(' ').join('') }) } value={this.state.username} required />
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant