Skip to content
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

'rawText' is cutting off empty spaces #314

Open
vendramini opened this issue Jul 31, 2024 · 0 comments
Open

'rawText' is cutting off empty spaces #314

vendramini opened this issue Jul 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vendramini
Copy link

vendramini commented Jul 31, 2024

Steps to reproduce

  1. Create a <MaskedTextInput/> without setting mask property (it's allowed, so it was supposed to behave like a regular TextInput).
  2. Type anything adding empty spaces like 'test test'.
  3. onChangeText(value, rawText) is dispatched as rawTest=testtest

Expected behaviour

rawText=test test

Actual behaviour

rawText=testtest

Environment

  • React Native version: "react-native": "0.74.3",
  • React Native platform + platform version: iOS 17.5 iPhone SE Simulator
  • Typescript version (if using typescript): "typescript": "~5.3.3"

react-native-mask-text

Version: "react-native-mask-text": "^0.14.2",

https://codesandbox.io/p/sandbox/clever-https-mfsvhv?file=%2Fsrc%2FApp.js

@vendramini vendramini added the bug Something isn't working label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant