Uploaded image for project: '[Read Only] - Hippo Theme'
  1. [Read Only] - Hippo Theme
  2. HIPPOTHEME-74

Reselection fails in chosen

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • CMS-10.0-alpha-1
    • CMS-10.0-FCS, 1.02.02
    • None

    Description

      In Essentials, Dashboard Wizard Plugin configuration screen, I have a few chosen dropdowns, and noticed that some of them don't work when I change the selection. The relevant HTML code is

      <select name="selectedDocument" chosen
      ng-model="selectedDocument"
      ng-selected="selectedDocument"
      ng-required="true"
      ng-options="option.fullName for option in documentTypes"
      data-placeholder="Document type"
      width="'100%'">
      </select>

      It appears that whenever the ng-model value on the scope is set to , the selection is off by 1 (select index x, get index x+1) upon changing the initial selection. mlenser found a chosen issue for this:

      https://github.com/localytics/angular-chosen/issues/110

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tjeger Tobias Jeger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: