Skip to content
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

Bug in using resfull service in dropdown in matrix dynamic + using hasOther and setting old data #2854

Closed
andrewtelnov opened this issue May 8, 2021 · 0 comments
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

The original issue was created in SurveyJS support desk.
Here is the minimum code to reproduce the issue:

    var json = {
      elements: [
        {
          type: "matrixdynamic",
          name: "countries",
          indent: 1,
          title: "Countries",
          columns: [
            {
              name: "country",
              hasOther: true,
              choicesByUrl: {
                url: "https://restcountries.eu/rest/v2/all",
                valueName: "name",
              },
            },
          ],
          rowCount: 1,
        },
      ],
    };
    var survey = new Survey.Model(json);
    survey.data = {
      countries: [{ country: "Albania", "country-Comment": "description" }],
    };
@andrewtelnov andrewtelnov added this to the v1.8.47 milestone May 8, 2021
andrewtelnov added a commit that referenced this issue May 8, 2021
andrewtelnov added a commit that referenced this issue May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant