Skip to content

fix(file-upload): align usage instructions with Ark UI #511

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pdzxc
Copy link

@pdzxc pdzxc commented May 16, 2025

Clicking the FileUpload.Label causes the file upload dialog to appear again after selecting a file or canceling. There is a discrepancy in behavior between Park UI and Ark UI implementations.

Screen.Recording.2025-05-16.at.7.12.45.pm.mov

Park UI Implementation
https://park-ui.com/docs/components/file-upload

...
<FileUpload.Dropzone>
  <FileUpload.Label>Drop your files here</FileUpload.Label>
  <FileUpload.Trigger asChild>
    <Button size="sm">Open Dialog</Button>
  </FileUpload.Trigger>
</FileUpload.Dropzone>
...

Ark UI Implementation
https://ark-ui.com/docs/components/file-upload

...
<FileUpload.Label>Drop your files here</FileUpload.Label>
<FileUpload.Dropzone>
  <FileUpload.Trigger asChild>
    <Button size="sm">Open Dialog</Button>
  </FileUpload.Trigger>
</FileUpload.Dropzone>
...

Copy link

vercel bot commented May 16, 2025

@pdzxc is attempting to deploy a commit to the Personal Team on Vercel.

A member of the Team first needs to authorize it.

@pdzxc pdzxc changed the title chore: align usage instructions with Ark UI fix: align usage instructions with Ark UI May 16, 2025
@pdzxc pdzxc changed the title fix: align usage instructions with Ark UI fix(file-upload): align usage instructions with Ark UI May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant