Skip to content

Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change)#831

Open
HomemadeToast57 wants to merge 1 commit intoFaridSafi:masterfrom
HomemadeToast57:master
Open

Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change)#831
HomemadeToast57 wants to merge 1 commit intoFaridSafi:masterfrom
HomemadeToast57:master

Conversation

@HomemadeToast57
Copy link

This change introduces a new method setAddressTextAndQuery(address) that can be used by refs 🎉🎊🙌 ! It changes the address text to the provided address and then queries the input automatically. Using _handleChangeText(address) and setListViewDisplayed(true), it also shows the list of results (NOTE: This is not currently possible with setAddressText(address) alone...). This gives more flexibility to developers who would like to programmatically set the address text AND then query the input AND display the results lists directly from their refs.

Note: This change does not affect pre-existing functionality. It only adds further functionality through a single simple function. Therefore, there are no conflicts created.

This new method has one address parameter. It changes the address text to the provided address and then queries the input. Using _handleChangeText(address) and setListViewDisplayed(true), it also shows the list of results automatically. This gives more flexibility to developers who would like to autofill and query input programmatically.
@HomemadeToast57 HomemadeToast57 changed the title 💡 Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change) 💡 Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change) Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants