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

autoOpenFileEditor does not work #4878

Closed
2 tasks done
jmschrack opened this issue Jan 19, 2024 · 1 comment · Fixed by #4939
Closed
2 tasks done

autoOpenFileEditor does not work #4878

jmschrack opened this issue Jan 19, 2024 · 1 comment · Fixed by #4939
Assignees
Labels

Comments

@jmschrack
Copy link

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

  • NextJS 13.4.3
  • uppy/core 3.8.0
  • uppy/dashboard 3.7.1
  • uppy/react 3.2.1
  • uppy/file-input 3.0.4
  • uppy/status-bar
  • React 18.2.0

using the sample setup for React https://uppy.io/docs/react/ (without webcam)

Sample code

const metaFields = [
  { id: "name", name: "Name", placeholder: "file name" },
  { id: "license", name: "License", placeholder: "specify license" },
  {
    id: "caption",
    name: "Caption",
    placeholder: "describe what the image is about",
  },
];

function UppySample() {
  const [uppy] = React.useState(() => new Uppy());
  return <Dashboard uppy={uppy} metaFields={metaFields} autoOpenFileEditor />;
}

  1. Add <UppySample /> to a page.
  2. Navigate to the page.
  3. Add a file to Uppy.

Expected behavior

The File Editor modal should appear, displaying the metaFields for editing.

Actual behavior

The File Editor modal does not appear.
The File Editor can be accessed via the edit button as normal.

@jmschrack jmschrack added the Bug label Jan 19, 2024
@arturi
Copy link
Contributor

arturi commented Jan 28, 2024

Hi. The autoopenfileeditor refers to a file editor plugin, such as @uppy/image-editor, not the meta editing screen. Perhaps we should update the docs to indicate this.

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

Successfully merging a pull request may close this issue.

3 participants