Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11176

Embedded forms display undefined select option

XMLWordPrintable

      When using generated form, the select form displays an empty "undefined" option
      This is removed once the user selects an option

      Root cause
      1. We fetch variables asynchronously to prefill the form with values already present in the process variables. At this moment, no value is selected
      2. During the async request, angular enters a digest cycle. Because the selected Value is undefined, it creates a new option
      3. Once fetched, the Value is set correctly, but the undefined value remains. It seems that we do not force angular to re-render the form again
      4. with user-input, angular "notices" changes and removes the undefined option

      Possible solution
      Run `angular.apply()` to force an angular update when selecting the value

        This is the controller panel for Smart Panels app

              akif.hazarvi Akif
              martin.stamm Martin Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: