Closed tylerthedeveloper closed 4 years ago
@tylerthedeveloper you can use textInputProps
textInputProps={{value: 'default value'}}
@bhavya95 then once you try to change it immediately resets itself because the value is bound to that ...
Can you provide more clarification?
All I have is
const [location, setLocation] = useState();
<PlaceInput ... onSelect={place => setLocation(place))} textInputProps={{ autoCorrect: false, value: location || "El Paso, Texas" }} .. />
any thoughts @jaing ?
can you try with a query prop?
query: this.props.query || '',
so that worked when hardcoded, but I fetch current location (standard) and set it to that, and it never re-renders, even though console.log(currentLocation) will show the correct output
Please try 1.1.5. Component now will update a query value on prop change and there is a new config to clear query on palce select
is this possible?
i'd like have a default address selected