I’m trying to achieve resetting a search bar input’s current geographical location. If the user wants to do a search in a location other than their current location, i want them to be able to erase the current location by clicking an icon as opposed to just backspacing all the way through.
I tried using a custom state on the search bar input, however that didn’t work.
Has anyone achieved this?
My apologies for not listing all of the ways that I’ve tried however, I tried that method too. I just went another direction with it. I simply left the searchbox blank to allow the user to put in the desire location zip code, and then added a quick button that when clicked, will display the current user’s geographical location.
Thanks @faisalkarimstubapp this was exactly what I was looking for - I’d tried Reset Inputs and Reset Displayed Data and some other stuff before coming here - you saved me time!!!