You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently developing a react (18) NextJS (14.2.5) application using Google Maps AutocompleteService. What I am experiencing is the selected value is not populating the input value unless the focus is lost on the element. I have verified that state is being updated.
const customStyles = {
dropdownIndicator: (provided) => ({
...provided,
display: 'none',
}),
indicatorSeparator: (provided) => ({
...provided,
display: 'none',
}),
container: (provided) => ({
...provided,
width: '100%',
maxWidth: '600px',
margin: '0 auto',
}),
input: (provided) => ({
...provided,
width: '100%',
}),
singleValue: (provided) => ({
...provided,
color: 'black', // Set the text color for selected value
}),
option: (provided) => ({
...provided,
color: 'black', // Set the text color for options
}),
menu: (provided) => ({
...provided,
width: '100%', // Ensure the menu width is responsive
}),
control: (provided, state) => ({
...provided,
borderColor: state.isFocused ? 'blue' : 'gray', // Change border color on focus
boxShadow: state.isFocused ? '0 0 0 1px blue' : 'none', // Add shadow on focus
}),
};
I am currently developing a react (18) NextJS (14.2.5) application using Google Maps AutocompleteService. What I am experiencing is the selected value is not populating the input value unless the focus is lost on the element. I have verified that state is being updated.
The text was updated successfully, but these errors were encountered: