Skip to content

Fixed duplicate initialization - fxes #45 #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2015

Conversation

eburi
Copy link

@eburi eburi commented Sep 17, 2015

To prevent duplicate calls to asyncCallback (#45), I removed the ng-init from the inner form-group, leaving only the populateTitleMap-call on ui-select-choices, because this call is mad with searchTerm as an empty string, instead of undefined. I figured this is where the ui-select is ready.

I think one populateTitleMap is needed...

@nicklasb
Copy link
Member

What about initial values? Is that being resolved with this PR?

nicklasb added a commit that referenced this pull request Sep 17, 2015
Fixed duplicate initialization - fixes #45
@nicklasb nicklasb merged commit 9982f96 into OptimalBPM:master Sep 17, 2015
@nicklasb
Copy link
Member

They were, adding.

@Sigkill9
Copy link

Sigkill9 commented Jun 6, 2017

I am using the newest versions (as far as I can tell) and getting two calls for every instance using the options.httpGet || asyncCallback methods.

factory.js

      form.type = 'strapselect';
      form.placeholder = 'Select Something';
      form.options = {
        httpGet: {
         "url" : "http://localhost:8080/" + form.url
       }
      };
  
return result.form.push(form);

controller.js
$scope.form = result;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants