Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Add autocomplete for dropdowns. #211

Closed
bhagyas opened this issue Dec 4, 2015 · 3 comments
Closed

Add autocomplete for dropdowns. #211

bhagyas opened this issue Dec 4, 2015 · 3 comments

Comments

@bhagyas
Copy link

bhagyas commented Dec 4, 2015

Probably use select2 whenever possible.

@jkleinsc
Copy link
Member

jkleinsc commented Dec 7, 2015

HospitalRun tackles this by using typeahead fields instead of dropdowns where applicable. These typeahead fields also support the ability for users to add new values. An administrator can choose to turn off the ability for users to add new values for typeaheads. In my opinion this gives us greater flexibility out of the box and also means that when a new site comes up an admin doesn't have to spend time creating values for drop down lists.

HospitalRun does have some spots where dropdowns are specifically used, but in most of those cases, the dropdowns are small data sets, so I'm not sure that autocomplete is needed for them.

@tangollama
Copy link
Member

@bhagyas, unless you have additional questions / concerns / input, I'm inclined to close this issue. Let me know if @jkleinsc response is sufficient.

@bhagyas
Copy link
Author

bhagyas commented Dec 11, 2015

Apologies for the delay in response.

Having select2 or similar would enable picking up values that don't start from a particular sequence of characters.

matteovivona pushed a commit that referenced this issue Jan 15, 2021
Incidents.test.tsx - refactored improvements and setup function
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants