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

fix: FileButton files property binding #949

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

knd775
Copy link
Sponsor Contributor

@knd775 knd775 commented Feb 9, 2023

Before submitting the PR:

  • Does your PR reference an issue? If not, please chat to the team on Discord or GitHub before submission.
  • Did you update and run tests before submission using npm run test?
  • Does your branch follow our naming convention? If not, please amend the branch name using branch -m new-branch-name
  • Did you update documentation related to your new feature or changes?

What does your PR address?

If you bind a variable to a FileButton component's files property, it won't actually update when a file is selected. This PR removes the explicit property from the file input and just passes files to the input like any other property through the prunedRestProps.

@vercel
Copy link

vercel bot commented Feb 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
skeleton-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 9, 2023 at 8:54PM (UTC)

@knd775 knd775 changed the title fix: FileButton file binding fix: FileButton files property binding Feb 9, 2023
@endigo9740
Copy link
Contributor

Thank you @knd775!

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.

None yet

2 participants