https://i.stack.imgur.com/KoQxk.png
Whenever I input a value in the autocomplete component, an unresolved warning pops up... Here's how my input setup looks:
<Autocomplete
id="cboAdresse"
sx={{ width: 100 + "%", fontFamily: "Poppins Bold" }}
getOptionLabel={(option) =>
typeof option === "string" ? option : option.label
}
filterOptions={(x) => {
return x;
}}
options={lstadresse}
isOptionEqualToValue={(option, value) =>
value.label === option.label
}
autoComplete
includeInputInList
filterSelectedOptions
value={adresse}
noOptionsText="Aucune adresse trouvée"
onChange={(event, newValue) => {
setLstAdresse(
newValue.name ? [newValue.name, ...lstadresse] : lstadresse
);
setAdresse(newValue.name);
if (newValue.name != "") {
setVille(newValue.city);
setCodePostal(newValue.postcode);
}
}}
onInputChange={(event, newInputValue) => {
setInputRue(newInputValue);
}}
renderInput={(params) => (
<div
ref={params.InputProps.ref}
className="login-block__input form_input_white"
>
<input
type="text"
name="adresse"
placeholder="Adresse"
{...params.inputProps}
/>
</div>
)}
/>
Despite using the IsOptionEqualToValue parameter, the issue persists. I've come across similar experiences where others have resolved it with the same method, but I remain stuck. Any insights or solutions are much appreciated. Thank you!