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

onOpenFileChooser not triggered #4915

Closed
SamMousa opened this issue Nov 23, 2023 · 1 comment
Closed

onOpenFileChooser not triggered #4915

SamMousa opened this issue Nov 23, 2023 · 1 comment
Labels
user issue An issue or bug reported by users.

Comments

@SamMousa
Copy link
Contributor

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)?

  • Go the link below
  • Try setting another image for the first question, note you get a standard JS alert: file chooser
  • Try setting an image on the second question, note you get the standard file picker dialog <<< 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

  • browser: N/A
  • editor version: latest
@JaneSjs JaneSjs self-assigned this Mar 19, 2024
@JaneSjs
Copy link
Contributor

JaneSjs commented Mar 19, 2024

The issue was fixed and no longer reproduced: #5124.

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

@JaneSjs JaneSjs closed this as completed Mar 19, 2024
@JaneSjs JaneSjs removed their assignment Mar 19, 2024
@JaneSjs JaneSjs added the user issue An issue or bug reported by users. label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

2 participants