We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const countries = [ { _id: 1, name: "America" }, { _id: 2, name: "Canada" }, { _id: 3, name: "China" }, { _id: 4, name: "France" }, { _id: 5, name: "Germany" }, { _id: 6, name: "India" }, { _id: 7, name: "Italy" }, { _id: 8, name: "Japan" }, { _id: 9, name: "Mexico" }, { _id: 10, name: "Russia" }, { _id: 11, name: "Spain" }, { _id: 12, name: "United Kingdom" }, { _id: 13, name: "United States" }, ] let country; <AutoComplete name="country" placeholder="Select a Country" items={countries} bind:selectedItem={country} labelFunction={(item) => item.name} valueFieldName="_id" />
The value submitted by the form is the name of the Country and not the _id . Also tried with valueFunction but same issue.
The text was updated successfully, but these errors were encountered:
Same problem here
Sorry, something went wrong.
No branches or pull requests
The value submitted by the form is the name of the Country and not the _id . Also tried with valueFunction but same issue.
The text was updated successfully, but these errors were encountered: