survey-creator icon indicating copy to clipboard operation
survey-creator copied to clipboard

Change question menu incorrect for custom question type.

Open SamMousa opened this issue 1 year ago • 1 comments

Are you requesting a feature, reporting a bug or ask a question?

Bug

What is the current behavior?

I'm adding a question from a template (so the intention is for the end user to be able to customize it), the change menu shows 2 items highlighted. This seems to be incorrect.

What is the expected behavior?

The change menu should not show duplicate entries.

How would you reproduce the current behavior (if this is a bug)?

  • Click the example link below
  • Add a question of type Country
  • Try changing the type via the adorner button

image

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://codesandbox.io/p/sandbox/mystifying-chaum-tlf79d

creator.toolbox.addItem({
  // A unique name; must use lowercase
  name: "country",
  // A display name used in the Toolbox
  title: "Country",
  // A JSON schema for the base question type (Dropdown in this case)
  json: {
    type: "dropdown",
    placeholder: "Select a country...",
    choicesByUrl: {
      url: "https://surveyjs.io/api/CountriesExample",
    },
  },
});

Specify your

  • browser: Ungoogled Chromium latest
  • editor version: latest

SamMousa avatar Nov 30 '23 10:11 SamMousa

Hi Everyone, Thank you for reporting this issue. I forwarded it to our developers for further research.

Please stay tuned.

JaneSjs avatar Mar 19 '24 13:03 JaneSjs