Skip to content
New issue

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

Set a Default Item dynamically #31

Open
lucascorrea31 opened this issue Jan 18, 2023 · 1 comment
Open

Set a Default Item dynamically #31

lucascorrea31 opened this issue Jan 18, 2023 · 1 comment

Comments

@lucascorrea31
Copy link

I have set the items array with ajax return and I'm trying to set default items to show a value if this field was empty.
Both vars are settled correctly, but the simple-typeahead component is still blank.

Is there possible to do it?

@viracoding
Copy link

The value of defaultItem has to be a object, an element from items. As the defaultItem uses the itemProjection function to display the defualt value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants