surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
915 stars 373 forks source link

onOpenFileChooser not triggered #4915

Closed SamMousa closed 8 months ago

SamMousa commented 12 months ago

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

Bug

What is the current behavior?

The onOpenFileChooser event is not properly triggered when configuring an image question, if no image is configured yet.

What is the expected behavior?

The event should for all ways the creator opens a file picker.

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

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

Tested page URL: https://codesandbox.io/p/sandbox/focused-sea-3p8cff

Test code

{
  elements: [
    {
      type: "image",
      name: "question1",
      description: "Clicking the icon in the top right works correctly",
      imageLink:
        "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg",
    },
    {
      type: "image",
      name: "question1",
    },
  ],
}

Specify your

JaneSjs commented 8 months ago

The issue was fixed and no longer reproduced: https://github.com/surveyjs/survey-creator/issues/5124.

@SamMousa: for quicker responses, please feel free to contact us via Help Desk.