CRM-20871 - crmUiSelect - UI should stay in sync with model
authorTim Otten <totten@civicrm.org>
Fri, 14 Jul 2017 02:46:58 +0000 (19:46 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 14 Jul 2017 02:46:58 +0000 (19:46 -0700)
commit93a007cee891d599a1a8b514faf423b5b620a7a9
treecd4598d800fc9c32d652c0066286584ff2c3d00c
parent8e998f78184e5f5fe0e079c3f757578a84ed895d
CRM-20871 - crmUiSelect - UI should stay in sync with model

The `crmUiSelect` defines the function `$render()` -- whenever the model
changes, it should update execute `$render()` to update the UI.  But it doesn't.

This issue is discussed more in https://stackoverflow.com/questions/21084088/why-ngmodels-render-is-not-called-when-the-model-changes-in-angularjs

== Before ==

The `$render()` function for directive `crm-ui-select` is not called because the `select`
directive overrides it.

== After ==

The `$render()` function for directive `crm-ui-select` is called, even if
used on a `select` element.

== Acceptance Criteria ==

 * The test page in https://github.com/totten/org.example.angpage (`civicrm/a/#/play`)
   keeps elements synchronized.
 * Existing screens which use `crm-ui-select` continue to work.
ang/crmUi.js