Bug Report: v2.2.0 -> 2.5.7 triggers the onChangeText
Input event after selecting a location
#962
Open
3 of 4 tasks
Labels
Describe the bug
I was working on updating the packages in my project but for some reason I noticed that upgrading this package causes my validation check to fail because of the onChangeText firing additional times when upgrading the package to v2.5.7 from 2.2.0
Reproduction - (required - issue will be closed without this)
You dont need the api key to test. Just test in its current state (v2.2.0) and then upgrade the package in the package.json to 2.5.7
https://snack.expo.dev/@kris_lau/maps-autocomplete?platform=ios
In v2.2.0 (and 2.5.1 from what I can tell) you should see this:
![Image](https://private-user-images.githubusercontent.com/46275463/405005226-e011ea6d-bfac-4d7d-b32d-6926e382366b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjYwOTEsIm5iZiI6MTczOTM2NTc5MSwicGF0aCI6Ii80NjI3NTQ2My80MDUwMDUyMjYtZTAxMWVhNmQtYmZhYy00ZDdkLWIzMmQtNjkyNmUzODIzNjZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEzMDk1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzY2NhNmVkYTNjOTAwMDE5MGNiNDBkMWU3MTkyZTgyMjMwYTRjOTY0ZmVmNTllZjBiMmEwOGU4ZmNiYjE5ODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8MrWNV8IOlXtN27H6d7cm-xmzBhQ0rDXvWlhtJ8Ga2A)
In v2.5.7 you should see the onChangeText fired after selecting the item from the list which sets the
![Image](https://private-user-images.githubusercontent.com/46275463/405012877-0e8fac05-b7ad-48c8-8791-82cfc0845254.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjYwOTEsIm5iZiI6MTczOTM2NTc5MSwicGF0aCI6Ii80NjI3NTQ2My80MDUwMTI4NzctMGU4ZmFjMDUtYjdhZC00OGM4LTg3OTEtODJjZmMwODQ1MjU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDEzMDk1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1MWJmNjVkYzEyMzkwZjNmYzJhMWI2MzdmNzE4ZDJmZTE4OWI0YWY5ZTQxMDA5ZWM5NmZmYmVhZmVhNjZjMGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.27-sNbghOtmuZAb_aIwQc-FJ-QOvDDvx5kXD6nK3BdE)
isLocationValid
to false. v2.5.7 doesn't seem to work in the snack though, it crashes with thecrypto.getRandomValues() not supported
error and on my project using the same code as the snack causes aMaximum update depth exceeded
error:Additional context
Library Version: [2.2.0 & 2.57]
React Native Version: [0.76.6]
iOS
Android
Web
If you are using expo please indicate here:
Add any other context about the problem here, screenshots etc
The text was updated successfully, but these errors were encountered: