cht-core
cht-core copied to clipboard
Enable 2-way binding for select2 fields (non-enketo)
A couple places (like edit-user.js controller) use select2 fields outside of enketo. They don't have to way binding, they fetch the value on form submit using jquery. That's more complicated code, and it makes testing more messy.
Make a select2 directive, or maybe a ng-bind with a setter, and remove the jquery.
There are libraries that do this for us, eg: https://github.com/angular-ui/ui-select
Hi @dianabarsan,
This ticket has not been touched in 90 days. Is it still relevant?
(See triaging old issues for more detail)